- 编译文件
docker build -t nginx:v3 .
- 运行一个实例子并且进入bash
docker run --name myjdk7 -it jdk7:v1 bash
- 打包推送
$ docker tag nginx 120.7.9.16:8000/urpcs/nginx:v1.0
$ docker push 120.7.9.16:8000/urpcs/nginx:v1.0
docker build -t nginx:v3 .
docker run --name myjdk7 -it jdk7:v1 bash
$ docker tag nginx 120.7.9.16:8000/urpcs/nginx:v1.0
$ docker push 120.7.9.16:8000/urpcs/nginx:v1.0