docker无事可做,找不到docker通讯器。

问题描述 投票:1回答:1

I followed below steps on centos 7 machine to install docker but it says nothing to do and when I run docker command it says that command not found.I followed below steps on centos 7 machine to install docker but it says nothing to do and when I run docker command it says that command not found.

**sudo yum check-update
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker**

在其他一些机器上,同样的命令工作,但它有一些奇怪的行为在这台机器上。

docker kubernetes docker-compose kubectl docker-machine
1个回答
1
投票

运行以下步骤解决了这个问题。

  1. Some how firewall started creating problem , so I had to check the internet connection as below: curl --location-trusted --ntlm --user "xyz" www.google.com 输入密码。

  2. yum install http:/mirror.centos.orgcentos7extrasx86_64Packagescontainer-selinux-2.107-3.el7.noarch.rpm。

  3. yum -y install docker-ce

© www.soinside.com 2019 - 2024. All rights reserved.