【二十】Docker-镜像操作

来源:互联网 发布:说唱网络歌曲 编辑:程序博客网 时间:2024/05/16 03:56

对image的操作(search、pull、images、rmi、history)

  • 检索image
$docker search image_name  
  • 下载image
$docker pull image_name  
  • 列出镜像列表;
-a, --all=false Show all images; --no-trunc=false Don't truncate output; -q, --quiet=false Only show numeric IDs  $docker images  
  • 删除一个或者多个镜像
-f, --force=false Force; --no-prune=false Do not delete untagged parents  $docker rmi image_name  
  • 显示一个镜像的历史
-no-trunc=false Don't truncate output; -q, --quiet=false Only show numeric IDs  $docker history image_name  
原创粉丝点击