Heim >Backend-Entwicklung >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/0ac71fed1af802a4ecf4a93bd2b3a7b2e6adab2cf93ee28357712afe6d5e1f47/etc/nginx/nginx.conf
我用docker搭建php开发坏境的时候 ,遇到了上面的问题,经过查询 ,这是一个低版本docker-compose 的bug,
我当时用的是1.1版本,我根据官方的文档卸载了docker-compose ,重新安装了更高的版本;
官方文档链接是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
完美解决了上面的问题.
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });以上就介绍了解决cannot mount volume over existing file, file exists /var/lib/docker/aufs/mnt/,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。