This commit is contained in:
light
2018-03-05 15:30:38 +08:00
3 changed files with 37 additions and 5 deletions
+17 -4
View File
@@ -2,8 +2,8 @@
## step 1: 安装必要的一些系统工具
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
sudo apt update
sudo apt -y install apt-transport-https ca-certificates curl software-properties-common
## step 2: 安装GPG证书
@@ -15,8 +15,8 @@ sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/li
## Step 4: 更新并安装 Docker-CE
sudo apt-get -y update
sudo apt-get -y install docker-ce
sudo apt -y update
sudo apt -y install docker-ce
## 加速
@@ -36,5 +36,18 @@ sudo systemctl restart docker
``` bash
docker login registry.cn-hangzhou.aliyuncs.com
## not to type sudo
``` bash
cat /ect/group
# if docker grouo not exist , then run this command: sudo groupadd docker
sudo gpasswd -a ${USER} docker
# add me into docker group
sudo service docker restart
reboot # or relogin
```