美文网首页
框架 | Docker | 3.镜像命令

框架 | Docker | 3.镜像命令

作者: ShadowFieldEric | 来源:发表于2020-12-02 10:57 被阅读0次

下载镜像

$ 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

相关文章

网友评论

      本文标题:框架 | Docker | 3.镜像命令

      本文链接:https://www.haomeiwen.com/subject/ofijwktx.html