title: Nestjs/TypeORM Cannot connect to Docker MariaDB
body: <p>Whenever I run my docker image containing nodejs 11.10 &amp; mariadb, I get the following error:</p>
  
  <blockquote>
    <p>[Nest] 16   - 3/12/2019, 11:24:02 AM   [TypeOrmModule] Unable to
    connect to the database. Retrying (9)... +3587msError: EPERM:
    operation not permitted, scandir
    '/proc/1/map_files/559e63542000-559e656d1000'
        at Object.readdirSync (fs.js:807:3)    at GlobSync._readdir (/app/node_modules/glob/sync.js:288:41)
        at GlobSync._readdirInGlobStar (/app/node_modules/glob/sync.js:267:20)
        at GlobSync._readdir (/app/node_modules/glob/sync.js:276:17)
        at GlobSync._processReaddir (/app/node_modules/glob/sync.js:137:22)
        at GlobSync._process (/app/node_modules/glob/sync.js:132:10)
        at GlobSync._processGlobStar (/app/node_modules/glob/sync.js:380:10)
        at GlobSync._process (/app/node_modules/glob/sync.js:130:10)
        at GlobSync._processGlobStar (/app/node_modules/glob/sync.js:383:10)
        at GlobSync._process (/app/node_modules/glob/sync.js:130:10)</p>
  </blockquote>
  
  <p>The same issue happens when I use <code>mysql:latest</code> &amp; <code>mysql:5.6</code>. This is my connection:</p>
  
  <pre><code>TypeOrmModule.forRoot({
    type: 'mariadb',
    host: '172.17.0.1',
    port: 3306,
    username: 'nest',
    password: 'secret',
    database: 'nest',
    entities: [__dirname + '/**/*.entity{.ts,.js}'],
    synchronize: true,
  }),
  </code></pre>
  
  <p>Has anyone else ever had this issue, and so, know how to fix it?
  Thanks!</p>