問題: cannot mount volume over existing file, file exists /var/lib/docker/aufs/mnt/0ac71fed1af802a4ecf4a93bd2b3a7b2e6adab2cf93ee28357571275750 月/
我用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