我正在尝试在Windows 10上运行docker build:
D:\mds>docker-compose --file=docker-compose.yml up -d
Starting mds_data_1
Starting mds_memcached_1
Starting mds_mongo_1
Starting mds_mysql_1
Starting mds_fc_1
Starting mds_succeed_1
Starting mds_haproxy_1`
但是fc_1没有启动,当我运行时:docker logs mds_fc_1
,我看到了:
container_linux.go:247: starting container process caused "process_linux.go:359: container init caused \"rootfs_linux.go:54: mounting \\\"/D/~mds\\\" to rootfs \\\"/var/lib/docker/overlay2/f483546b2e19d0860971307b8cc813bad6ca683f3ebd90c36d89974444d7b75b/merged\\\" at \\\"/var/www/applications/mds\\\" caused \\\"stat /D/~mds: input/output error\\\"\""
container_linux.go:247: starting container process caused "process_linux.go:359: container init caused \"rootfs_linux.go:54: mounting \\\"/D/~mds\\\" to rootfs \\\"/var/lib/docker/overlay2/f483546b2e19d0860971307b8cc813bad6ca683f3ebd90c36d89974444d7b75b/merged\\\" at \\\"/var/www/applications/mds\\\" caused \\\"stat /D/~mds: input/output error\\\"\""
standard_init_linux.go:178: exec user process caused "no such file or directory"
standard_init_linux.go:178: exec user process caused "no such file or directory"
standard_init_linux.go:178: exec user process caused "no such file or directory"
standard_init_linux.go:178: exec user process caused "no such file or directory"
答案 0 :(得分:0)
如果您运行docker ps -a
,则可以看到您的泊坞窗容器状态。
我认为fc_1位于exited status
,因为它失败了file not found error
之类的错误。
请找出这个错误发生的原因,然后你可以fc_1连续运行。