Docker pull镜像名称 把本地镜像推送到远程详解

发布于:2024-04-23 ⋅ 阅读:(125) ⋅ 点赞:(0)

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

 

 

 

 

 

 

 

 


网站公告

今日签到

点亮在社区的每一天
去签到