获取最新版docker安装包
wget -qO- https://get.docker.com/ | SH
截图
2.将docker的root权限加入到普通用户中
sudo usermod -aG docker 用户
3.重新启动服务
sudo service docker start
4.测试
docker run hello-world
5.镜像加速
在/etc/docker目录下编写daemon.json,如果没有就创建一个
内容如下
{
"registry-mirrors": ["https://alzgoonw.mirror.aliyuncs.com"]
}
重启docker服务
systemctl daemon-reload
systemctl restart docker
查看镜像连接
docker info
拉取Python和ubuntu镜像,并显示
docker pull ubuntu
docker pull python
docker images