I have an image of php7.2 which is now working in production mode. When I tried to create a service of the current image , I got "cannot mount volume over existing file, file exists /var/lib/docker/overlay2/4726faf1f3b385e805dec93e0e411acf322ca5ba6d5fd24666c24cb2f85ef810/merged/usr/local/etc/php/conf.d/local.ini"
I have tried by removing local.ini from the stack , but no change happened. Is there any way to fix this error?
最后,由于我无法删除该卷,因为它正被其他容器使用,我使用swarm stack deploy
命令和docker compose
将该卷安装到我的新 swarm 容器中。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.