更改鏡像源,系統沒有這個文件,直接新增這個文件
-
#vi /etc/docker/daemon.json
-
{
-
"registry-mirrors":["https://registry.docker-cn.com"]
-
}
更改鏡像后重啟docker
#systemctl restart docker
查看docker是否運行成功
#ps -ef |grep docker
docker查看本地鏡像
#dicker image ls
docker下載,默認是下載latest
#docker pull nginx
下載指定版本
#docker pull nginx:1.12
刪除鏡像
#docker image rm <id|name>
