升级docker后启动容器报错(目录挂载问题)

为什么80%的码农都做不了架构师?>>>   hot3.png

该目录问题应该windows下才有(刚好在windows下升级docker才出现此问题,呵呵)

升级后的docker版本:Version 17.12.0-ce-win46 (15048)

这里是升级后启动php7容器报错(其它容器一样),报错如下,提示目录挂载问题:

Error response from daemon: OCI runtime create failed: container_linux.go:296: starting container process caused "process_linux.go:398: container init caused \"rootfs_linux.go:58: mounting \\\"/D/Docker/lnp/php7/php-fpm.d/www.conf\\\" to rootfs \\\"/var/lib/docker/overlay2/c216eefd5dca26710e427bf6d33889de029ef2e51a096649c324652ffb59219a/merged\\\" at \\\"/var/lib/docker/overlay2/c216eefd5dca26710e427bf6d33889de029ef2e51a096649c324652ffb59219a/merged/usr/local/etc/php-fpm.d/www.conf\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
Error: failed to start containers: php7

右键docker图标,kitematic->选择对应容器(php7)->Settings->Volumes->CHANGE(更新其中的挂载目录:更新其中一个目录其它挂载路径会自动更新)。

END

转载于:https://my.oschina.net/cdcc/blog/1606191

你可能感兴趣的:(升级docker后启动容器报错(目录挂载问题))