sudo yum-config-manager --add-repo
sudo yum install docker-ce
--> processing conflict: 1:docker-ce-cli-18.09.6-3.el7.x86_64 conflicts docker
--> processing conflict: 1:docker-ce-cli-18.09.6-3.el7.x86_64 conflicts docker-io
--> processing conflict: 3:docker-ce-18.09.6-3.el7.x86_64 conflicts docker
--> processing conflict: 3:docker-ce-18.09.6-3.el7.x86_64 conflicts docker-io
--> finished dependency resolution
error: docker-ce conflicts with 2:docker-1.13.1-96.gitb2f74b2.el7.centos.x86_64
error: docker-ce-cli conflicts with 2:docker-1.13.1-96.gitb2f74b2.el7.centos.x86_64
you could try using --skip-broken to work around the problem
you could try running: rpm -va --nofiles --nodigest
# 1、檢視安裝過的docker:
yum list installed | grep docker
docker.x86_64 2:1.13.1-74.git6e3bb8e.el7.centos
docker-client.x86_64 2:1.13.1-74.git6e3bb8e.el7.centos
docker-common.x86_64 2:1.13.1-74.git6e3bb8e.el7.centos
# 2、解除安裝docker:
sudo yum remove -y docker-ce.x86_64 docker-client.x86_64 docker-common.x86_64
# 3、刪除容器映象:
sudo rm -rf /var/lib/docker
# 4、 重新安裝docker
sudo yum install docker-ce
# 開機自啟
sudo systemctl enable docker
# 啟動docker服務
sudo systemctl start docker
# 1. 建立 docker 使用者組
sudo groupadd docker
# 2.新增當前使用者到 docker 組
sudo usermod -ag docker $user
# 阿里雲控制台搜尋容器映象服務
# 進入容器映象服務, 左側最下方容器映象服務中複製加速器位址
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'eof'
eof# 重啟docker
sudo systemctl daemon-reload
sudo systemctl restart docker
Linux快速安裝 Docker
linux安裝命令 1 解除安裝舊版本 sudo yum remove docker docker client docker client latest docker common docker latest docker latest logrotate docker logrotate doc...
Docker(一) 快速安裝
uname r檢查核心版本,返回的值大於3.10即可。sudo apt get install docker.io source etc bash completion.d docker.io 然後檢視版本,檢測是否安裝成功 sodu docker.io version這裡也分為二種方式 方法一 推...
docker快速安裝Jenkins
1.pull映象 要使用最新的lts docker pull jenkins jenkins lts 新建容器 docker run name jenkins p 8081 8080 p 50000 50000 d jenkins jenkins lts 備註 8080為docker埠,8081為對...