gpt4 book ai didi

linux - 如何在 sles 12 上正确安装 Docker?

转载 作者:太空宇宙 更新时间:2023-11-04 12:38:10 40 4
gpt4 key购买 nike

我想在我的物理本地机器上的 VM 中安装 Docker。 VM 包含 sles 12。

我指的是 install docker on suse and open suse关联。现在 Docker 已安装在我的 VM 中,但由于问题我无法运行更多命令。

命令及其输出-

  1. docker -v

Docker version 1.12.3, build 8eab29e

  1. sudo 服务 docker 状态

hp:/var/run # sudo service docker status docker.service - Docker Application Container Engine

Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled) Active: failed (Result: start-limit) since Thu 2016-12-08 16:04:35 IST; 6min ago

Docs: http://docs.docker.com Process: 11950 ExecStart=/usr/bin/dockerd -H fd:// --containerd /run/containerd/containerd.sock --add-runtime oci=/usr/sbin/runc --default-runtime oci $DOCKER_NETWORK_OPTIONS $DOCKER_OPTS (code=exited, status=1/FAILURE)

Main PID: 11950 (code=exited, status=1/FAILURE)

Dec 08 16:04:35 hp dockerd[11950]: /usr/bin/dockerd: /lib64/libdevmapper.so.1.02: version `DM_1_02_97' not found (required by /usr/bin/dockerd)

Dec 08 16:04:35 hp systemd1: docker.service start request repeated too quickly, refusing to start.

Dec 08 16:04:35 hp systemd1: Failed to start Docker Application Container Engine.

  1. systemctl status docker.socket

docker.socket - Docker Socket for the API

Loaded: loaded (/usr/lib/systemd/system/docker.socket; disabled)

Active: active (listening) since Thu 2016-12-08 16:13:18 IST; 5s ago
Listen: /var/run/docker.sock (Stream) Process: 11977 ExecStartPost=/usr/bin/chown root:docker /var/run/docker.sock (code=exited, status=0/SUCCESS)

  1. sudo docker run hello-world

docker: An error occurred trying to connect: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create: read unix @->/var/run/docker.sock: read: connection reset by peer. See 'docker run --help'.

我无法确定到底出了什么问题。我该如何解决这个问题或从头开始安装 docker?

最佳答案

可能与讨论的内容有关here ,尽管与旧版本相关。

尝试:

  1. 停止 docker 守护进程
  2. sudo rm/var/lib/docker/network/files/local-kv.db
  3. 启动docker守护进程

关于linux - 如何在 sles 12 上正确安装 Docker?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41037561/

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