zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    P4149 [IOI2011]Race dsu on tree
    CodeForces
    2020牛客国庆集训派对day2 CHEAP DELIVERIES
    Hero In Maze
    topo排序
    今年暑假不AC
    小国的游戏
    Stall Reservations
    博弈论
    Reversed Words
  • 原文地址:https://www.cnblogs.com/carriezhangyan/p/10736380.html
Copyright © 2011-2022 走看看