docker image 详解

 docker iamge 

docker 镜像:

[root@localhost ~]# docker image --help

Usage:    docker image COMMAND
管理镜像
Commands:
  build       从 Dockerfile 构建一个镜像
  history     显示镜像的历史
  import      从tarball导入内容以创建文件系统镜像
  inspect     检查显示一个或者多个镜像的详细信息
  load        从tar存档或者STDIN中加载一个镜像
  ls          列出所有的镜像
  prune       移除未使用的镜像
  pull        从注册表中拉取一个镜像或者存储库
  push        将镜像或者储存库推入注册表
  rm          移除一个或多个镜像
  save        将一个或多个图像保存到tar存档文件(默认情况下流到STDOUT)
  tag         创建一个引用SOURCE_IMAGE的TARGET_IMAGE标记

运行“docker image COMMAND——help”获取关于命令的更多信息。



# docker image ls   
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
centos              7.4.1708            9f266d35e02c        5 weeks ago         197MB
centos              latest              9f38484d220f        5 weeks ago         202MB
ubuntu              18.04               94e814e2efa8        5 weeks ago         88.9MB

# docker image rm 9f266d35e02c       // 删除指定的镜像   
# docker image ls   
  REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
  centos              latest              9f38484d220f        5 weeks ago         202MB
  ubuntu              18.04               94e814e2efa8        5 weeks ago         88.9MB
原文地址:https://www.cnblogs.com/carriezhangyan/p/10736380.html