# Installing and running Docker plugin - help with syntax needed

**URL:** https://discuss.elastic.co/t/installing-and-running-docker-plugin-help-with-syntax-needed/302529
**Category:** Elasticsearch
**Tags:** docker
**Created:** [April 15, 2022, 10:10pm UTC](https://discuss.elastic.co/t/installing-and-running-docker-plugin-help-with-syntax-needed/302529 "2022-04-15T22:10:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![paolovalladolid](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@paolovalladolid](https://discuss.elastic.co/u/paolovalladolid)
#### Post date: [April 15, 2022, 10:10pm UTC](https://discuss.elastic.co/t/installing-and-running-docker-plugin-help-with-syntax-needed/302529/1 "2022-04-15T22:10:24Z")

</div>

I get the error

```auto
"docker run" requires at least 1 argument(s).

```

when I run this command

```auto
docker run --log-driver=elastic/elastic-logging-plugin:8.1.2 --log-opt hosts="thehost"

```

I then tried to fix the error by adding what I understand to be the Image that the docker run command requires

```auto
docker run --log-driver=elastic/elastic-logging-plugin:8.1.2 --log-opt hosts="thehost" registry.redhat.io/3scale-amp2/apicast-gateway-rhel8

```

but I get a different error

```auto
/usr/bin/docker-current: Error response from daemon: logger: no log driver named 'elastic/elastic-logging-plugin:8.1.2' is registered.

```

I suspect the real problem is not the log driver, because the plugin shows as enabled when I run `docker plugin ls`

I'm new to Docker so I cannot figure out what I typed wrong in my commands.

The instructions I'm following are of course here:

> **[Install and configure the Elastic Logging Plugin | Elastic Logging Plugin for...](https://www.elastic.co/guide/en/beats/loggingplugin/current/log-driver-installation.html)**

While the article talks about installing, it does not say anything about **registering** the driver. Should I explicitly register the Elastic log driver?

---

<div class="post-metadata">

### Author: ![paolovalladolid](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@paolovalladolid](https://discuss.elastic.co/u/paolovalladolid)
#### Post date: [May 3, 2022, 10:14pm UTC](https://discuss.elastic.co/t/installing-and-running-docker-plugin-help-with-syntax-needed/302529/2 "2022-05-03T22:14:38Z")

</div>

What I really need is to pipe the output of "docker logs mycontainer" to our Elastic cluster. This plugin, I guess, tries to live inside the container. I don't think that's what we're looking for.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 31, 2022, 10:14pm UTC](https://discuss.elastic.co/t/installing-and-running-docker-plugin-help-with-syntax-needed/302529/3 "2022-05-31T22:14:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
