Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: no log driver named 'docker-log-driver-test' is registered #3

Closed
khba opened this issue Apr 12, 2018 · 3 comments
Closed

docker: no log driver named 'docker-log-driver-test' is registered #3

khba opened this issue Apr 12, 2018 · 3 comments

Comments

@khba
Copy link

khba commented Apr 12, 2018

This is not a bug but a question: How to register the custom plugin to the docker daemon ?
Here is what I did as explained in the doc:

$ cd /etc/docker/plugins/
$ git clone https://github.com/cpuguy83/docker-log-driver-test
$ cd docker-log-driver-test
$ docker build -t docker-log-driver-test -f Dockerfile.build .
$ ID=$(docker create docker-log-driver-test true)
$ mkdir rootfs
$ docker export $ID | tar -x -C rootfs/
$ docker plugin create docker-log-driver-test .
$ docker plugin enable docker-log-driver-test

"docker plugin ls" shows the plugin correctly added and enabled.

But the container can't use it:
$ docker run --log-driver docker-log-driver-test -dit alpine echo hello world
docker: Error response from daemon: logger: no log driver named 'docker-log-driver-test ' is registered.
See 'docker run --help'.

Also tried setting it in the daemon.json file:
$ cat /etc/docker/daemon.json
{
"log-driver": "docker-log-driver-test"
}

But still same error:
$ docker run -dit alpine echo hello world
docker: Error response from daemon: logger: no log driver named 'docker-log-driver-test' is registered.
See 'docker run --help'.

What have I missed?
Thanks,

@cpuguy83
Copy link
Owner

What version of docker are you using?

@khba
Copy link
Author

khba commented Apr 12, 2018

$ docker version
Client:
Version: 1.13.1
API version: 1.26
Go version: go1.6.2
Git commit: 092cba3
Built: Thu Nov 2 20:40:23 2017
OS/Arch: linux/amd64

Server:
Version: 1.13.1
API version: 1.26 (minimum version 1.12)
Go version: go1.6.2
Git commit: 092cba3
Built: Thu Nov 2 20:40:23 2017
OS/Arch: linux/amd64
Experimental: false

@cpuguy83
Copy link
Owner

Logging plugins are not supported until the Docker 17.05 release.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants