gpt4 book ai didi

使用不同的数据目录时docker没有响应

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

我想更改docker中的图像目录。我尝试了最初提到的两种方法here .这两种方法都有效并更改了 docker 图像的目录。但问题是图像停止响应。我可以运行 hello world 示例,但是如果我运行 ubuntu 容器或whalsay 容器,docker 会停止响应并且我无法再次运行它。

docker run -it ubuntu bash

docker run docker/whalesay cowsay boo

在使用上述命令时,图像被下载并且没有任何 react 。然后我再次输入命令运行,系统停止响应。我使用 Ctrl + C 终止它,但之后我无法打开任何其他终端屏幕。此外,系统不会断电;它卡在黑屏上。在强制重新启动系统时,docker 开始无法运行,并给出以下日志:
docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2017-04-14 20:12:14 EDT; 10min ago
Docs: https://docs.docker.com
Process: 1160 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
Main PID: 1160 (code=exited, status=1/FAILURE)

Apr 14 20:12:14 abmittal-linux systemd[1]: Starting Docker Application Container Engine...
Apr 14 20:12:14 abmittal-linux dockerd[1160]: unable to configure the Docker daemon with file /etc/docker/daemon.json: EOF
Apr 14 20:12:14 abmittal-linux systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
Apr 14 20:12:14 abmittal-linux systemd[1]: Failed to start Docker Application Container Engine.
Apr 14 20:12:14 abmittal-linux systemd[1]: docker.service: Unit entered failed state.
Apr 14 20:12:14 abmittal-linux systemd[1]: docker.service: Failed with result 'exit-code'

如果目录与以前相同(即使该目录已被删除然后重新创建),则删除和重新安装 docker 也不起作用。我必须更改配置中的目录才能让它再次运行,但它再次停止响应。

以下是我的 daemon.json 文件:
{
"graph":"/mnt/other/docker_images"
}

编辑:我想我可能发现了错误。分区/mnt/other 正在使用 NTFS 文件系统(并且位于不同的磁盘上)。有人可以确认这是否是错误的根源吗?

最佳答案

这是一个已知的错误:Link
我尝试在 ext4 分区上创建一个自定义目录并且它有效。

关于使用不同的数据目录时docker没有响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43420908/

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