Home >Backend Development >PHP Tutorial >解决cannot mount volume over existing file, file exists /var/lib/docker/aufs/mnt/

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

WBOY
WBOYOriginal
2016-07-29 09:03:157807browse

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

<code>Uninstallation
<span>To</span> uninstall Docker Compose <span>if</span> you installed using curl:

$ rm /usr/<span>local</span>/bin/docker<span>-compose</span></code>

2

<code><span>$ </span>curl -<span>L</span><span>https:</span>/<span>/github.com/docker</span><span>/compose/releases</span><span>/download/</span><span>1.6</span>.<span>0</span>/run.sh > <span>/usr/local</span><span>/bin/docker</span>-compose
<span>$ </span>chmod +x /usr/local/bin/docker-compose</code>

3 docker-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.

Statement:
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