[syslog-ng] Unbale to mount syslog-ng.conf to /etc/syslog-ng using docker image

Mujeeb Baig baig.mujeeb at gmail.com
Fri May 25 11:13:34 UTC 2018


Hi

This is my first trial of syslog-ng. I've tried to start syslog-ng just
like described on the official bolg page https://syslog-ng.com/blog/
central-log-server-docker/ https://syslog-ng.com/blog/collecting-docker-
infrastructure-logs-using-syslog-ng/

I am starting docker container as:

docker run -it -v "$PWD"/syslog-ng.conf:/etc/syslog-ng/syslog-ng.conf
--name syslog-ng -p 514:514 -p 601:601 balabit/syslog-ng:latest

But unfortunately it is failing to mount my custom (local) configuration
file from source to host, complaining about mounting a directory onto file

Error:

docker: Error response from daemon: OCI runtime create failed:
container_linux.go:348: starting container process caused
"process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting
\\"/home/smb/code/conf/syslog-ng.conf\\" to rootfs \\"/var/lib/docker/
devicemapper/mnt/52d32f854a030b396b03e7596ab5d7
1eb1a18f34a09d5e4997c437568749b259/rootfs\\" at \\"/var/lib/docker/
devicemapper/mnt/52d32f854a030b396b03e7596ab5d7
1eb1a18f34a09d5e4997c437568749b259/rootfs/etc/syslog-ng/syslog-ng.conf\\"
caused \\"not a directory\\"\"": unknown: Are you trying to mount a
directory onto a file (or vice-versa)? Check if the specified host path
exists and is the expected type.

Am I missing something?

Please let me know

Many Thanks

Mujeeb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20180525/65878fcd/attachment.html>


More information about the syslog-ng mailing list