docker 创建新的镜像到私有仓库

docker:/data# docker ps
CONTAINER ID        IMAGE                 COMMAND             CREATED             STATUS              PORTS                    NAMES
bd6db4127a9e        centos                "bash"              40 minutes ago      Up 40 minutes                                zjzc_z1             
762c2693588d        centos                "bash"              41 minutes ago      Up 41 minutes                                stoic_lalande       
f80b40cf9abb        centos                "bash"              51 minutes ago      Up 51 minutes                                zjzc_awp            
c6643476b61b        centos_6.5_all:scan   "bash"              About an hour ago   Up About an hour                             jovial_mclean       
402620f666c1        registry              "docker-registry"   About an hour ago   Up About an hour    0.0.0.0:5000->5000/tcp   gloomy_brown        


docker:/data# docker tag centos_6.5_all:scan   172.17.42.1:5000/zjzc_centos6.5_template


上传镜像到私有仓库:

docker:/data# docker push 172.17.42.1:5000/zjzc_centos6.5_template
The push refers to a repository [172.17.42.1:5000/zjzc_centos6.5_template] (len: 1)
Sending image list
Pushing repository 172.17.42.1:5000/zjzc_centos6.5_template (1 tags)
511136ea3c5a: Image successfully pushed 
1d6ebc5c68b1: Image successfully pushed 




posted @ 2016-03-18 17:48  czcb  阅读(157)  评论(0编辑  收藏  举报