Docker error when using log-driver = "syslog" on OS X

docker error when used --log-driver="syslog"

in OS X

I am trying to find out how to use containers docker

in OS X (10.10.3), I understand the differences with the standard Linux implementation (boot2docker VM is required) and I am wondering if there is any impact on the way I can log messages using syslog

when i run container with option the --log-driver="syslog"

container is created but i get an error on startup

~$ docker run --log-driver="syslog" --name daemon_dwayne -d ubuntu /bin/sh -c "while true; do echo hello_world; sleep 2; done;"
1f623793049916d5c....
FATA[0000] Error response from daemon: Cannot start container 1f623793049916d5....: Unix syslog delivery error

      

this works fine on a linux machine ... thanks for any hint

+3


source to share


1 answer


Boot2docker runs in a small Linux virtual machine. By default, syslog is not running in the virtual machine. You can enable it by running syslogd in a virtual machine, for example:

$ boot2docker ssh
...
docker@boot2docker:~$ syslogd

      



If you try to start your container again, it should work.

You can make this change permanent by calling syslogd from a file /var/lib/boot2docker/bootsync.sh

inside the boot2docker VM, which boot2docker will execute before starting Docker.

+9


source







All Articles