gpt4 book ai didi

windows - 在Windows上启动Docker构建时的问题

转载 作者:行者123 更新时间:2023-12-02 20:15:53 25 4
gpt4 key购买 nike

我正在尝试在Windows 10上运行docker构建:

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"

最佳答案

如果运行docker ps -a,那么您可以看到您的Docker容器状态。

我认为fc_1在exited status中,因为它因诸如file not found error之类的错误而失败。

请找出发生此错误的原因,然后就可以使fc_1连续运行。

关于windows - 在Windows上启动Docker构建时的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43378915/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com