title: docker for windows & mysql official container
body: <p>I'm running MySQL inside the latest official MySQL docker container. 
  The host machine is Windows 10. </p>
  
  <p>I'm using "docker-compose up mysql" to start the following service:</p>
  
  <pre><code>version: '3.4'
  
  services:
    mysql:
      image: mysql/mysql-server:latest
      container_name: sqlstore
      ports:
       - '3306:3306'
      expose:
       - '3306'
      env_file:
       - ./sqlconfig.env  
      volumes:
       - ./data:/var/lib/mysql
  </code></pre>
  
  <p>The problem that I'm having is when MySQL database files reside on the host's volume, MySQL fails to run and I keep getting the following error message:
  "do you already have another mysqld server running on the socket: "/var/lib/mysql/mysql.sock""</p>
  
  <p>It is worth noting that I did make sure that the port is not being used by other processes, and MySQL's files are indeed being written to the ./data directory on the host.</p>
  
  <p>However, when the MySQL files do not reside on the host but inside the docker itself, everything runs correctly.</p>