首页 > 其他 > 详细

docker 仓库

时间:2017-06-18 21:41:56      阅读:302      评论:0      收藏:0      [点我收藏+]

docker  pull  centos

docker run  -it -d  --name  mycentosnginx   centos

bash  docker.sh   mycentosnginx

进入容器 

yum  -y install  nginx

修改nginx配置文件

daemon  off;

docker commit    mycentosnginx      liuhx/nginx:v1 

[root@linux-node1 ~]# docker images

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE

liuhx/nginx         v1                  43b6f702691a        4 minutes ago       368.3 MB

docker.io/centos    latest              3bee3060bfc8        12 days ago         192.5 MB

docker.io/nginx     latest              958a7ae9e569        2 weeks ago         109.4 MB

docker.io/alpine    latest              a41a7446062d        3 weeks ago         3.962 MB

[root@linux-node1 ~]# 


[root@linux-node1 ~]# docker login  https://hub.docker.com 

Username: sangge

Password: 

Login Succeeded

[root@linux-node1 ~]# 

 

 docker tag 7c95851e9f1c 技术分享docker.io/langge/my_nginx
docker push 技术分享docker.io/langge/my_nginx 


本文出自 “砖家博客” 博客,请务必保留此出处http://wsxxsl.blog.51cto.com/9085838/1939475

docker 仓库

原文:http://wsxxsl.blog.51cto.com/9085838/1939475

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!