title: Logging from bash in Docker: logger error: socket /dev/log: No such file or directory
body: <p>I am trying to configure logger to my script</p>
  
  <pre><code>#! /bin/bash
  
  alias log="logger -s -t conf_nginx"
  exec &gt;&gt; /var/log/myscript/file.log
  exec 2&gt;&amp;1
  
  log "this a log message"
  </code></pre>
  
  <p>when I am executing this script, I only see this line in the log file</p>
  
  <pre><code>$ cat /var/log/myscript/file.log  
  logger: socket /dev/log: No such file or directory
  </code></pre>
  
  <p>Please help</p>
  
  <pre><code>$cat /etc/os-release 
  PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=debian HOME_URL="debian.org/&amp;quot; SUPPORT_URL="debian.org/support&amp;quot; BUG_REPORT_URL="bugs.debian.org/&amp;quot;
  </code></pre>