<div dir="ltr"><div>Hi Mujeeb,</div><div><br></div><div>Maybe the problem is with the config file path:  "/home/smb/code/conf/syslog-<wbr>ng.conf"<br></div><div>Could you check that path is correct?<br></div><div><br></div><div>Regards</div><div>Andrew<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 25, 2018 at 1:13 PM, Mujeeb Baig <span dir="ltr"><<a href="mailto:baig.mujeeb@gmail.com" target="_blank">baig.mujeeb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi<br><br><div class="m_-5441214197815461185gmail-m_5651230204179623292gmail-postcell m_-5441214197815461185gmail-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/cen<wbr>tral-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/col<wbr>lecting-docker-infrastructure-<wbr>logs-using-syslog-ng/</a>

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

<p>docker run -it -v "$PWD"/syslog-ng.conf:/etc/sys<wbr>log-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/devicemappe<wbr>r/mnt/52d32f854a030b396b03e759<wbr>6ab5d71eb1a18f34a09d5e4997c437<wbr>568749b259/rootfs\\"
 at 
\\"/var/lib/docker/devicemappe<wbr>r/mnt/52d32f854a030b396b03e759<wbr>6ab5d71eb1a18f34a09d5e4997c437<wbr>568749b259/rootfs/etc/syslog-<wbr>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.</p>

<p>Am I missing something?</p><p>Please let me know</p><p>Many Thanks</p><span class="HOEnZb"><font color="#888888"><p>Mujeeb<br></p><p></p></font></span></div></div><br></div>
<br>______________________________<wbr>______________________________<wbr>__________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/<wbr>mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/<wbr>support/documentation/?<wbr>product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/<wbr>syslog-ng-faq</a><br>
<br>
<br></blockquote></div><br></div>