更改docker镜像源为阿里云
1 | sudo vim /etc/docker/daemon.json |
{
“registry-mirrors”: [“https://gvv1xf6d.mirror.aliyuncs.com"]
}
拉取系统镜像并运行:
1 | docker pull debian |
更改debian镜像源
1 | cd /etc/apt |
docker commit e7f167a49946 wsd/testimg:1 # container id
docker run -it wsd/testimg:1 bash