Docker 命令-镜像命令查看镜像构建历史,发布镜像到阿里云(6)
时间:2020-10-05 21:33:35
收藏:0
阅读:31
查看镜像构建历史
docker history 2b2cc1f48aed
发布镜像到阿里云
图片来自互联网
docker commit -a stonehu -m "new centos with vim and ifconfig from centos" 0d0cb5f308ac mycentos:1.4
sudo docker login --username=stonehu119 registry.cn-hangzhou.aliyuncs.com
sudo docker tag cbc6d72db8d7 registry.cn-hangzhou.aliyuncs.com/stonehu/mycentos:1.4.1
sudo docker push registry.cn-hangzhou.aliyuncs.com/stonehu/mycentos:1.4.1
docker pull registry.cn-hangzhou.aliyuncs.com/stonehu/mycentos:1.4.1
docker history 2b2cc1f48aed
发布镜像到阿里云
图片来自互联网
docker commit -a stonehu -m "new centos with vim and ifconfig from centos" 0d0cb5f308ac mycentos:1.4
sudo docker login --username=stonehu119 registry.cn-hangzhou.aliyuncs.com
sudo docker tag cbc6d72db8d7 registry.cn-hangzhou.aliyuncs.com/stonehu/mycentos:1.4.1
sudo docker push registry.cn-hangzhou.aliyuncs.com/stonehu/mycentos:1.4.1
docker pull registry.cn-hangzhou.aliyuncs.com/stonehu/mycentos:1.4.1
评论(0)