gpt4 book ai didi

docker:来自守护进程的错误响应:连接错误:desc = "transport: dial unix:///var/run/docker/containerd/docker-containerd.sock: timeout"

转载 作者:IT老高 更新时间:2023-10-28 12:47:34 25 4
gpt4 key购买 nike

当我尝试通过以下方式杀死 Docker 守护进程时:

docker kill $(docker ps -q)

我收到以下错误:

Error response from daemon: Cannot kill container: cf5fc4b0e5d1: Cannot kill container cf5fc4b0e5d152a7a89682d8835c40c59e9e0c2c41be4aae330ffeb8093814f2: connection error: desc = "transport: dial unix:///var/run/docker/containerd/docker-containerd.sock: timeout": unknown
Error response from daemon: Cannot kill container: 590fab6b49a2: Cannot kill container 590fab6b49a2e3c832a99074a0679558a9f826d79e94bae7be4ca12c3a019b69: connection error: desc = "transport: dial unix:///var/run/docker/containerd/docker-containerd.sock: timeout": unknown

当我尝试通过以下方式停止 Docker 守护进程时:

docker stop $(docker ps -q)

我收到此错误:

Error response from daemon: cannot stop container: cf5fc4b0e5d1: Cannot kill container cf5fc4b0e5d152a7a89682d8835c40c59e9e0c2c41be4aae330ffeb8093814f2: connection error: desc = "transport: dial unix:///var/run/docker/containerd/docker-containerd.sock: timeout": unknown
Error response from daemon: cannot stop container: 590fab6b49a2: Cannot kill container 590fab6b49a2e3c832a99074a0679558a9f826d79e94bae7be4ca12c3a019b69: connection error: desc = "transport: dial unix:///var/run/docker/containerd/docker-containerd.sock: timeout": unknown

停止 Docker 守护程序的正确方法是什么?

最佳答案

对于 macOS 用户:如果您获得 macOS 等价物:

错误:调用 unix docker.raw.sock:连接:连接被拒绝

您可以使用以下命令重新启动 Docker:

enter image description here

关于docker:来自守护进程的错误响应:连接错误:desc = "transport: dial unix:///var/run/docker/containerd/docker-containerd.sock: timeout",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48115302/

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