docker:/root# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f3cb864be528 192.168.32.150:5000/zjzc_centos6.5_template "bash" About a minute ago Up About a minute zjzc_test99
d25712059702 192.168.32.150:5000/zjzc_centos6.5_m2 "bash" 7 minutes ago Up 7 minutes sick_wright
8302f2eb1c9e 192.168.32.150:5000/zjzc_centos6.5_m1 "bash" 12 minutes ago Up 12 minutes thirsty_ritchie
1a177b16d2a6 192.168.32.150:5000/zjzc_centos6.5_template "bash" 36 minutes ago Up 36 minutes mirror01
eb6d0ef3b9e2 linux123 "bash" 2 days ago Up 2 days admiring_archimedes
5739360d1030 registry "docker-registry" 2 days ago Up 2 days 0.0.0.0:5000->5000/tcp sad_mccarthy
c6643476b61b centos_6.5_all:scan "bash" 2 days ago Up 2 days
jovial_mclean
docker:/root# docker commit -m "zjzc_centos6.5-m1" -a scan 1a177b16d2a6 192.168.32.150:5000/zjzc_centos6.5_m1
a2100527968f54963d3a4cc12f5c106f51ece89e6515ce8dc48e9af62e9f20e5
docker:/root# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
192.168.32.150:5000/zjzc_centos6.5_m1 latest a2100527968f 7 seconds ago 1.072 GB
-m, --message= Commit message
-a, --author= Author (e.g., "John Hannibal Smith <hannibal@a-team.com>"
docker push 192.168.32.150:5000/zjzc_centos6.5_m1
查看仓库镜像:
docker:/root# curl http://192.168.32.150:5000/v1/search