gpt4 book ai didi

Docker 客户端无法连接到守护程序版本 1.9 : connection reset by peer

转载 作者:行者123 更新时间:2023-12-02 17:59:48 27 4
gpt4 key购买 nike

我昨天在 Ubuntu 12.04 上安装了新版本的 Docker (1.9.0)。但是当我运行任何 docker 命令时,它们总是显示以下日志,也许 docker 客户端无法连接到 docker 守护进程:

root@localhost:$docker ps
An error occurred trying to connect: Get `http:///var/run/docker.sock/v1.21/containers/json: read unix /var/run/docker.sock: connection reset by peer`

root@localhost:$ docker version
Client:
Version: 1.9.0
API version: 1.21
Go version: go1.4.2
Git commit: 76d6bc9
Built: Tue Nov 3 17:40:31 UTC 2015
OS/Arch: linux/amd64
An error occurred trying to connect: Get http:///var/run/docker.sock/v1.21/version: read unix /var/run/docker.sock: connection reset by peer

最佳答案

我们遇到了同样的问题,这解决了(在 ubuntu trusty 上):https://github.com/docker/docker/issues/17846#issuecomment-155233858

  • sudo service docker stop
  • sudo rm /var/lib/docker/network/files/local-kv.db
  • sudo service docker start
  • 关于Docker 客户端无法连接到守护程序版本 1.9 : connection reset by peer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33559110/

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