解决cannot mount volume over existing file, file exists /var/lib/docker/aufs/mnt/

WBOY
Release: 2016-07-29 09:03:15
Original
7698 people have browsed it

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
Copy after login

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
Copy after login

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!