通过docker commit生成新的镜像
通过docker push发布到私有仓库上
相关参数和命令
jdbc:oracle:thin:@//10.128.222.243:1521/OraDoc.my.domain.com
system
MyPasswd123
t3://10.128.222.243:7011
jdbc/MedRecGlobalDataSourceXA
docker run -d -it -p 7011:7011 10.128.222.245:5000/store/oracle/weblogic.app81:1.0
docker@docker-ubuntu:~/12212-oradb-medrec$
cd
docker@docker-ubuntu:~$
./list.py
10.128.222.245:5000/busybox:1.0
10.128.222.245:5000/database-enterprise:12.2.0.2
10.128.222.245:5000/latest:latest
10.128.222.245:5000/store/oracle/database-enterprise:12.1.0.2
10.128.222.245:5000/store/oracle/weblogic:12.2.1.2
10.128.222.245:5000/test:latest
docker@docker-ubuntu:~$
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
76ea23486fe6 12212-oradb-medrec "startSample.sh" 19 hours ago Up 19 hours 0.0.0.0:7011->7011/tcp dreamy_northcutt
32c6f7a16fab 10.128.222.245:5000/store/oracle/database-enterprise:12.1.0.2 "/bin/sh -c '/bin/..." 19 hours ago Up 19 hours 0.0.0.0:1521->1521/tcp, 0.0.0.0:5500->5500/tcp dockerDB
docker@docker-ubuntu:~$
docker commit 76ea23486fe6 10.128.222.245:5000/store/oracle/weblogic.app81:1.0
sha256:36850f34dfca0993bb70224866bd02e966149686a4940f097aadc898989330c9
docker@docker-ubuntu:~$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
10.128.222.245:5000/store/oracle/weblogic.app81 1.0 36850f34dfca 4 seconds ago 1.56GB
12212-oradb-medrec latest 131d609fb6c5 22 hours ago 1.51GB
test/ubuntu v1.0 ccd7c18fc8df 3 weeks ago 97.6MB
ubuntu 16.10 19d5aca0ccd4 4 weeks ago 106MB
ubuntu latest 7b9b13f7b9c0 4 weeks ago 118MB
10.128.222.245:5000/store/oracle/weblogic 12.2.1.2 0f56fc2fbf56 4 weeks ago 1.12GB
store/oracle/weblogic 12.2.1.2 0f56fc2fbf56 4 weeks ago 1.12GB
10.128.222.245:5000/database-enterprise 12.2.0.2 9410a79c6531 4 weeks ago 5.27GB
10.128.222.245:5000/store/oracle/database-enterprise 12.1.0.2 9410a79c6531 4 weeks ago 5.27GB
store/oracle/database-enterprise 12.1.0.2 9410a79c6531 4 weeks ago 5.27GB
nginx latest 958a7ae9e569 4 weeks ago 109MB
registry latest 9d0c4eabab4d 7 weeks ago 33.2MB
10.128.222.245:5000/test latest 48b5124b2768 5 months ago 1.84kB
hello-world latest 48b5124b2768 5 months ago 1.84kB
docker@docker-ubuntu:~$
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
76ea23486fe6 12212-oradb-medrec "startSample.sh" 19 hours ago Up 19 hours 0.0.0.0:7011->7011/tcp dreamy_northcutt
32c6f7a16fab 10.128.222.245:5000/store/oracle/database-enterprise:12.1.0.2 "/bin/sh -c '/bin/..." 19 hours ago Up 19 hours 0.0.0.0:1521->1521/tcp, 0.0.0.0:5500->5500/tcp dockerDB
docker@docker-ubuntu:~$
docker stop 76ea23486fe6
76ea23486fe6
docker@docker-ubuntu:~$
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
76ea23486fe6 12212-oradb-medrec "startSample.sh" 19 hours ago Exited (137) 12 seconds ago dreamy_northcutt
32c6f7a16fab 10.128.222.245:5000/store/oracle/database-enterprise:12.1.0.2 "/bin/sh -c '/bin/..." 19 hours ago Up 19 hours 0.0.0.0:1521->1521/tcp, 0.0.0.0:5500->5500/tcp dockerDB
2e3b898af687 registry "/entrypoint.sh /e..." 3 weeks ago Created loving_boyd
a8b018549418 registry "/entrypoint.sh /e..." 3 weeks ago Created priceless_fermi
87c0bd15ade6 registry "/entrypoint.sh /e..." 3 weeks ago Exited (2) 3 weeks ago hungry_goldwasser
f12c91a42ede registry "/entrypoint.sh /e..." 3 weeks ago Created practical_wiles
1944fa8f61f9 registry "/entrypoint.sh /e..." 3 weeks ago Created thirsty_jones
65bc89fe3483 registry "/entrypoint.sh /e..." 3 weeks ago Exited (2) 3 weeks ago serene_goldberg
43c61ef05bf2 nginx "nginx -g 'daemon ..." 3 weeks ago Exited (0) 3 weeks ago webserver
3f1c1e48d58a ubuntu "/bin/sh -c 'while..." 3 weeks ago Exited (137) 3 weeks ago affectionate_johnson
851320e3a490 ubuntu:16.10 "/bin/bash" 3 weeks ago Exited (0) 3 weeks ago frosty_hopper
81ab1d497385 ubuntu:16.10 "/bin/echo hello,W..." 3 weeks ago Exited (0) 3 weeks ago heuristic_albattani
e3fc6532c31a ubuntu "/bin/echo hello,W..." 3 weeks ago Exited (0) 3 weeks ago condescending_khorana
76fc37dc0c5c ubuntu "/bin/bash" 3 weeks ago Created epic_franklin
docker@docker-ubuntu:~$
docker rm 76ea23486fe6
76ea23486fe6
docker@docker-ubuntu:~$
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
32c6f7a16fab 10.128.222.245:5000/store/oracle/database-enterprise:12.1.0.2 "/bin/sh -c '/bin/..." 19 hours ago Up 19 hours 0.0.0.0:1521->1521/tcp, 0.0.0.0:5500->5500/tcp dockerDB
docker@docker-ubuntu:~$
./list.py
10.128.222.245:5000/busybox:1.0
10.128.222.245:5000/database-enterprise:12.2.0.2
10.128.222.245:5000/latest:latest
10.128.222.245:5000/store/oracle/database-enterprise:12.1.0.2
10.128.222.245:5000/store/oracle/weblogic:12.2.1.2
10.128.222.245:5000/test:latest
docker@docker-ubuntu:~$
docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
10.128.222.245:5000/store/oracle/weblogic.app81 1.0 36850f34dfca 9 minutes ago 1.56GB
12212-oradb-medrec latest 131d609fb6c5 23 hours ago 1.51GB
test/ubuntu v1.0 ccd7c18fc8df 3 weeks ago 97.6MB
ubuntu 16.10 19d5aca0ccd4 4 weeks ago 106MB
ubuntu latest 7b9b13f7b9c0 4 weeks ago 118MB
10.128.222.245:5000/store/oracle/weblogic 12.2.1.2 0f56fc2fbf56 4 weeks ago 1.12GB
store/oracle/weblogic 12.2.1.2 0f56fc2fbf56 4 weeks ago 1.12GB
10.128.222.245:5000/database-enterprise 12.2.0.2 9410a79c6531 4 weeks ago 5.27GB
10.128.222.245:5000/store/oracle/database-enterprise 12.1.0.2 9410a79c6531 4 weeks ago 5.27GB
store/oracle/database-enterprise 12.1.0.2 9410a79c6531 4 weeks ago 5.27GB
nginx latest 958a7ae9e569 4 weeks ago 109MB
registry latest 9d0c4eabab4d 7 weeks ago 33.2MB
10.128.222.245:5000/test latest 48b5124b2768 5 months ago 1.84kB
hello-world latest 48b5124b2768 5 months ago 1.84kB
docker@docker-ubuntu:~$
docker push 10.128.222.245:5000/store/oracle/weblogic.app81:1.0
The push refers to a repository [10.128.222.245:5000/store/oracle/weblogic.app81]
149daf6942b3: Pushed
3b61d5f707e1: Pushed
1e43e0fd61d9: Pushed
b3eea1422727: Pushed
6f7d10767f57: Pushed
e0c9c257e72b: Pushed
52e9d41bc505: Mounted from store/oracle/database-enterprise
30409e330f17: Mounted from store/oracle/database-enterprise
b09e15e3aff0: Mounted from store/oracle/database-enterprise
6c317b7da862: Mounted from store/oracle/database-enterprise
87632f013979: Mounted from store/oracle/database-enterprise
29d783438658: Mounted from store/oracle/database-enterprise
1.0: digest: sha256:3b09da7ad86c1dda9d6fa925079ebae3a2d5a9ad28847d3e0aa9b8f6fdf84c3b size: 2839
docker@docker-ubuntu:~$
./list.py
10.128.222.245:5000/busybox:1.0
10.128.222.245:5000/database-enterprise:12.2.0.2
10.128.222.245:5000/latest:latest
10.128.222.245:5000/store/oracle/database-enterprise:12.1.0.2
10.128.222.245:5000/store/oracle/weblogic:12.2.1.2
10.128.222.245:5000/store/oracle/weblogic.app81:1.0
10.128.222.245:5000/test:latest
docker@docker-ubuntu:~$
docker@docker-ubuntu:~$
docker run -d -it -p 7011:7011 10.128.222.245:5000/store/oracle/weblogic.app81:1.0
be218b5486769d558b12902354f0c57fdbd2c6813e56606865cfbc7be090870e
docker@docker-ubuntu:~$