docker常用命令-docker images

docker images

语义

  • 容器本地镜像列表

语法

docker images [OPTIONS] [REPOSITORY[:TAG]]
参数说明
  • -a : --all :显示全部本地镜像,默认隐藏中间映像层
    docker images -a

  • –digests : 显示镜像的摘要信息
    docker images --digests

  • -f : --filter filter : 根据给定的条件过滤输出结果
    docker images -f filter=value

  • –format string : 按照给定的模板格式化输出结果
    docker images --format

  • –no-trunc : 显示完整的镜像信息

实例

  • 查看本地镜像
docker images
  • 只查看本地镜像ID
docker images -q
  • 只查看仓库为my的镜像
docker images my

猜你喜欢

转载自blog.csdn.net/zhangzehai2234/article/details/103264099