<div dir="ltr">Hi<br><br><div class="gmail-m_5651230204179623292gmail-postcell gmail-m_5651230204179623292gmail-post-layout--right">This is my first trial of syslog-ng.
I've tried to start syslog-ng just like described on the official bolg page 
<a href="https://syslog-ng.com/blog/central-log-server-docker/" rel="nofollow noreferrer" target="_blank">https://syslog-ng.com/blog/<wbr>central-log-server-docker/</a>
<a href="https://syslog-ng.com/blog/collecting-docker-infrastructure-logs-using-syslog-ng/" rel="nofollow noreferrer" target="_blank">https://syslog-ng.com/blog/<wbr>collecting-docker-<wbr>infrastructure-logs-using-<wbr>syslog-ng/</a>

<div class="gmail-m_5651230204179623292gmail-post-text"><p>I am starting docker container as:</p>

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

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

<p>Error:</p>

<p>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-<wbr>ng.conf\\" to rootfs 
\\"/var/lib/docker/<wbr>devicemapper/mnt/<wbr>52d32f854a030b396b03e7596ab5d7<wbr>1eb1a18f34a09d5e4997c437568749<wbr>b259/rootfs\\"
 at 
\\"/var/lib/docker/<wbr>devicemapper/mnt/<wbr>52d32f854a030b396b03e7596ab5d7<wbr>1eb1a18f34a09d5e4997c437568749<wbr>b259/rootfs/etc/syslog-ng/<wbr>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.</p>

<p>Am I missing something?</p><p>Please let me know</p><p>Many Thanks</p><p>Mujeeb<br></p><p></p></div></div><br></div>