1.下载安装docker
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
https://yq.aliyun.com/articles/110806?spm=5176.8351553.0.0.58d719910VMjfT
2.sudo mkdir -p /etc/docker
3.vim /etc/docker/daemon.json
加入以下文字
{
"registry-mirrors": ["https://pdrci26k.mirror.aliyuncs.com"]
}
4.sudo groupadd docker
5.sudo gpasswd -a $USER docker
6.进入docker group,以便使用socket接口
newgrp docker
- sudo systemctl daemon-reload
sudo systemctl restart docker
仓库使用详见:
https://cr.console.aliyun.com/repository/cn-hangzhou/eos/get-started/detail
网友评论