查看当前服务器所有docker镜像
[root@hoas ~]# docker images
查找镜像
[root@hoas ~]# docker search httpd
拉取镜像
[root@hoas ~]# docker pull ubuntu:13.10
更新镜像
[root@hoas ~]# docker run -t -i ubuntu:15.10
root@7087b6aeaac4:/# apt-get update
root@7087b6aeaac4:/# exit
exit
提交容器副本
[root@hoas ~]# docker commit -m="quickstart commit new container" -a="hoas" 7087b6aeaac4 hoas/ubuntu:19081701
此时执行 docker images,你会发现多了一个镜像 hoas/ubuntu :19081701
设置镜像标签
[root@docker ~]# docker tag 8f9eba89a0e7 hoas/ubuntu:dev303
此时查询docker images, 会增加一个 tag hoas/ubuntu:dev303, 镜像ID与原先一致