centos 7 安裝docker 並設定阿里雲映象倉庫

向南是大海發表於2017-10-26

標題2

 step 1: 安裝必要的一些系統工具
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
# step 2: 安裝GPG證書
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
# Step 3: 寫入軟體源資訊
sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
# Step 4: 更新並安裝 Docker-CE
sudo apt-get -y update
sudo apt-get -y install docker-ce

標題3

所需引用標題

centos 7 安裝docker 並設定阿里雲映象倉庫
Ubuntu 14.04 16.04 (使用apt-get進行安裝)

CentOS 7 (使用yum進行安裝)

  1. 羊羊羊
  2. 仙仙仙
  3. 蘑菇哥

標題1


clipboard.png

clipboard.png

# vim /etc/yum.repos.d/docker-ee.repo
#   將 [docker-ce-test] 下方的 enabled=0 修改為 enabled=1
#
# 安裝指定版本的Docker-CE:
# Step 1: 查詢Docker-CE的版本:
# yum list docker-ce.x86_64 --showduplicates | sort -r
#   Loading mirror speeds from cached hostfile
#   Loaded plugins: branch, fastestmirror, langpacks
#   docker-ce.x86_64            17.03.1.ce-1.el7.centos            docker-ce-stable
#   docker-ce.x86_64            17.03.1.ce-1.el7.centos            @docker-ce-stable
#   docker-ce.x86_64            17.03.0.ce-1.el7.centos            docker-ce-stable
#   Available Packages
# Step2 : 安裝指定版本的Docker-CE: (VERSION 例如上面的 17.03.0.ce.1-1.el7.centos)
# sudo yum -y install docker-ce-[VERSION]

上面的問題只是做一個案例說明

sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://uxk0ognt.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

案例說明2
我是一個粉刷匠粉刷本領強,我要把那大房子刷的很漂亮,我是一個粉刷匠粉刷本領強,我要把那大房子刷的很漂亮,我是一個粉刷匠粉刷本領強,我要把那大房子刷的很漂亮,我是一個粉刷匠粉刷本領強,我要把那大房子刷的很漂亮,

相關文章