上传docker镜像文件到远程仓库

》》创建hyy044101331用户下的tag镜像文件:

 

docker tag mengka-new-images:latest hyy044101331/mengka-new-images:20150113

 
 
 
bash-3.2$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
mengka-new-images   latest              dc27e692f33a        18 minutes ago      188.3 MB
ubuntu              14.04               8eaa4ff06b53        11 days ago         188.3 MB
ubuntu              14.04.1             8eaa4ff06b53        11 days ago         188.3 MB
ubuntu              latest              8eaa4ff06b53        11 days ago         188.3 MB
ubuntu              mengka              8eaa4ff06b53        11 days ago         188.3 MB
ubuntu              trusty              8eaa4ff06b53        11 days ago         188.3 MB
fedora              latest              834629358fe2        11 days ago         241.3 MB
 
 
bash-3.2$ docker tag mengka-new-images:latest hyy044101331 / mengka-new-images:20150113
 
bash-3.2$ docker images
REPOSITORY                       TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
mengka_aa/mengka-new-images      20150113            dc27e692f33a        30 minutes ago      188.3 MB
mengka-new-images                20150113            dc27e692f33a        30 minutes ago      188.3 MB
mengka-new-images                latest              dc27e692f33a        30 minutes ago      188.3 MB
hyy044101331/mengka-new-images   20150113            dc27e692f33a        30 minutes ago      188.3 MB
ubuntu                           14.04.1             8eaa4ff06b53        11 days ago         188.3 MB
ubuntu                           latest              8eaa4ff06b53        11 days ago         188.3 MB
ubuntu                           mengka              8eaa4ff06b53        11 days ago         188.3 MB
ubuntu                           trusty              8eaa4ff06b53        11 days ago         188.3 MB
ubuntu                           14.04               8eaa4ff06b53        11 days ago         188.3 MB
fedora                           latest              834629358fe2        11 days ago         241.3 MB
 
 
 

》》push本地的镜像文件到远程仓库:

 

docker push hyy044101331/mengka-new-images:20150113

 
 
 
bash-3.2$ docker push hyy044101331/mengka-new-images:20150113
The push refers to a repository [hyy044101331/mengka-new-images] (len: 1)
Sending image list
Pushing repository hyy044101331/mengka-new-images (1 tags)
511136ea3c5a: Image already pushed, skipping
3b363fd9d7da: Image already pushed, skipping
607c5d1cca71: Image already pushed, skipping
f62feddc05dc: Image already pushed, skipping
8eaa4ff06b53: Image already pushed, skipping
dc27e692f33a: Image successfully pushed
Pushing tag for rev [dc27e692f33a] on {https://cdn-registry-1.docker.io/v1/repositories/hyy044101331/mengka-new-images/tags/20150113}
bash-3.2$ 
 
 
 

》》远程仓库出现刚刚上传的镜像:

 
 
上传docker镜像文件到远程仓库_第1张图片
 

 

 

你可能感兴趣的:(docker)