首页 > 代码库 > docker 仓库
docker 仓库
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 仓库