Bind mount from windows host works only one time

Hi all,

i’m using docker desktop on windows with wsl.
Yesterday i updated docker to version 19.03.5 and now the bind mounts in my containers are no longer reactive. I never had issues before this update but now when i launch my containers, after the first edit to any file, it stops to stay in sync with the host’s files.

here is my docker-compose.yml:

version: "3"
services:
  php:
    build: ./php
    container_name: php
    depends_on:
      - db
    volumes:
      - ../../WWW/:/code
      - /code/treddy/api/vendor
  web:
    image: nginx:latest
    container_name: web
    ports:
      - 80:80
      - 443:443
    volumes:
      - ../../WWW/:/code
      - ./nginx.conf:/etc/nginx/nginx.conf
    depends_on:
      - php

  db:
    image: mysql:5.7
    container_name: db
    ports:
      - "3306:3306"
    volumes:
      - ./dbdata:/var/lib/mysql
    environment:
      MYSQL_ROOT_PASSWORD: password

Hope you can help me, thanks.

What version of Docker Desktop do you use, 2.2.0.0? There is an issue on Github that seems to report the same problem.

Yes, is the same version. It is possible to roll it back to a previous one?

In other threads I’ve read it is possible, but didn’t try it myself. If you don’t find the old version anymore on your pc you can download it from here.

1 Like