Docker pull镜像名称 把本地镜像推送到远程详解:
Docker 镜像 仓库 容器介绍 以及镜像仓库详解
下载一个alpine的镜像演示,alpine是一个比较小的的linux镜像。
docker pull alpine
docker tag d4ff818577bc docker.io/itying/alpine:v1.0.1
docker tag d4ff818577bc docker.io/itying/alpine:latest
[root@localhost ~]# docker images | grep alpine
itying/alpine v1.0.1 d4ff818577bc 4 weeks ago 5.6MB
alpine 3.14.0 d4ff818577bc 4 weeks ago 5.6MB
alpine latest d4ff818577bc 4 weeks ago 5.6MB
docker push docker.io/itying/alpine:v1.0.1
[root@localhost ~]# docker push docker.io/itying/alpine:v1.0.1
The push refers to repository [docker.io/itying/alpine]
72e830a4dff5: Mounted from library/alpine
v1.0.1: digest: sha256:1775bebec23e1f3ce486989bfc9ff3c4e951690df84aa9f926497d82f2ffca9d size: 528
在打一个标签
[root@localhost ~]# docker images | grep alpine
itying/alpine v1.0.1 d4ff818577bc 4 weeks ago 5.6MB
alpine 3.14.0 d4ff818577bc 4 weeks ago 5.6MB
alpine latest d4ff818577bc 4 weeks ago 5.6MB
docker tag d4ff818577bc docker.io/itying/alpine:latest
docker push docker.io/itying/alpine:latest
[root@localhost ~]# docker push docker.io/itying/alpine:latest
The push refers to repository [docker.io/itying/alpine]
72e830a4dff5: Layer already exists
Head https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/d4/d4ff818577bc193b309b355b02ebc9220427090057b54a59e73b79bdfe139b83/data?verify=1626683919-RTFSjxvIO10s%2BetZ4bmxfWY%2BcvQ%3D: EOF
文章来源地址https://www.toymoban.com/news/detail-859467.html
文章来源:https://www.toymoban.com/news/detail-859467.html
到了这里,关于Docker pull镜像名称 把本地镜像推送到远程详解的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!