Problem: cannot mount volume over existing file, file exists /var/lib/docker/aufs/mnt/0ac71fed1af802a4ecf4a93bd2b3a7b2e6adab2cf93ee28357712afe6d5e1f47/etc/nginx/nginx.conf
When I use docker to build a php development environment, Met the above Problem, after inquiry, it is a bug of the lower version of docker-compose,
I was using version 1.1 at the time. I uninstalled docker-compose according to the official documentation and reinstalled a higher version;
The official document link is https://docs.docker.com/compose/install/
1
Uninstallation To uninstall Docker Compose if you installed using curl: $ rm /usr/local/bin/docker-compose
2
$ curl -Lhttps://github.com/docker/compose/releases/download/1.6.0/run.sh > /usr/local/bin/docker-compose $ chmod +x /usr/local/bin/docker-compose
3docker-compose up -d
perfectly solves the above problem.
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });The above has introduced the solution to the problem of cannot mount volume over existing file, file exists /var/lib/docker/aufs/mnt/, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.