title: Don't know how to get started in nodejs with dockerized clamAV
body: <p><strong>I can't get started with dockerized clamav app</strong></p>
  <p>I know it is not a bug, but overviewed docs, googled dozen times and still get the same output.</p>
  <p>I built  a nodejs app  with a muter-based upload. There is a function that takes uploded file path and gets NodeClam() instance to work:</p>
  <pre class="lang-js prettyprint-override"><code>import NodeClam from 'clamscan'
  
  // clamscan module configs
  const ClamScan = new NodeClam().init({
      clamdscan: {
          socket: '/var/run/clamav/clamd.sock',
          host: '127.0.0.1',
          port: 3310,
      }
  });
  
  // Scan file using clamscan module
  export function scanFile(filePath) {
    return ClamScan.then(async clamscan =&gt; {
      const { is_infected, viruses } = await clamscan.scan_file(filePath);
  
  
      if (is_infected) {
        console.log(`The file is INFECTED with ${viruses}`);
        throw new Error('ERR_FILE_SCAN_INFECTED');
      } else {
  
        return 'CLEAN';
      }
    }).catch(err =&gt; {
      console.log(err)
      throw new Error(err);
    });
  }
  
  </code></pre>
  <p><strong>And than I get this output in node console (printing an error):</strong></p>
  <pre class="lang-sh prettyprint-override"><code>[server] Error: connect ENOENT /var/run/clamav/clamd.sock
  [server]     at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1142:16) {
  [server]   errno: -4058,
  [server]   code: 'ENOENT',
  [server]   syscall: 'connect',
  [server]   address: '/var/run/clamav/clamd.sock'
  [server] }
  [server] (node:24904) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
  [server] (Use `node --trace-warnings ...` to show where the warning was created)
  </code></pre>
  <p>I checked for directory in  docker (via bash) and a file directory seems to be fine:</p>
  <pre class="lang-sh prettyprint-override"><code>/run/clamav $ ls -la
  total 20
  drwxr-x---    1 clamav   clamav        4096 Apr  3 19:16 .
  drwxr-xr-x    1 root     root          4096 Feb 24 16:02 ..
  -rw-rw-r--    1 clamav   clamav           2 Apr  3 19:16 clamd.pid
  srw-rw-rw-    1 clamav   clamav           0 Apr  3 19:16 clamd.sock
  -rw-rw----    1 clamav   clamav           3 Apr  3 19:16 freshclam.pid
  /run/clamav $ pwd
  /var/run/clamav
  </code></pre>
  <p><strong>Host:</strong></p>
  <ul>
  <li>OS: windows/WSL</li>
  <li>Version 10</li>
  </ul>
  <p><strong>Image:</strong></p>
  <ul>
  <li>Tag: mkodockx/docker-clamav:alpine</li>
  <li>Configuration:</li>
  </ul>
  <pre class="lang-yaml prettyprint-override"><code>  clamAV:
      image:  mkodockx/docker-clamav:alpine
      restart: always
      ports:
        - 3310:3310
      volumes:
        - ./data/clamav:/var/lib/clamav
  </code></pre>
  <p>What am I missing to do?</p>