Ubuntu安装docker

docker配置国内镜像源

修改/etc/docker/daemon.json(文件不存在,新建一个)
{ 
"registry-mirrors": ["https://alzgoonw.mirror.aliyuncs.com"] 
}

docker服务

//重启服务
systemctl restart docker
//查看状态
systemctl status docker

docker操作

//查看信息
docker info
//搜索镜像
docker search hello
//运行
docker run hello-world
原文地址:https://www.cnblogs.com/smallredness/p/13722923.html