下载镜像
$ docker pull ubuntu:13.10
本地镜像列表
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
gm/ubuntu v1 66708d2ccbe7 40 hours ago 603MB
ubuntu latest d70eaf7277ea 3 weeks ago 72.9MB
hello-world latest bf756fb1ae65 10 months ago 13.3kB
ubuntu 15.10 9b9cb95443b5 4 years ago 137MB
查找镜像
$ docker search httpd
删除镜像
$ docker rmi node
容器快照生成镜像
$ docker commit -m="has update" -a="runoob" e218edb10161 runoob/ubuntu:v2
容器快照导出镜像
$ docker export ubuntu-test > ubuntu-test-image.tar
镜像导入
$ cat ubuntu-test-image.tar | docker import - gm/ubuntu:v1
网友评论