• docker 基于现有镜像修改后保存,上传私有仓库


    docker:/root# docker ps
    CONTAINER ID        IMAGE                                         COMMAND             CREATED              STATUS              PORTS                    NAMES
    f3cb864be528        192.168.32.150:5000/zjzc_centos6.5_template   "bash"              About a minute ago   Up About a minute                            zjzc_test99           
    d25712059702        192.168.32.150:5000/zjzc_centos6.5_m2         "bash"              7 minutes ago        Up 7 minutes                                 sick_wright           
    8302f2eb1c9e        192.168.32.150:5000/zjzc_centos6.5_m1         "bash"              12 minutes ago       Up 12 minutes                                thirsty_ritchie       
    1a177b16d2a6        192.168.32.150:5000/zjzc_centos6.5_template   "bash"              36 minutes ago       Up 36 minutes                                mirror01              
    eb6d0ef3b9e2        linux123                                      "bash"              2 days ago           Up 2 days                                    admiring_archimedes   
    5739360d1030        registry                                      "docker-registry"   2 days ago           Up 2 days           0.0.0.0:5000->5000/tcp   sad_mccarthy          
    c6643476b61b        centos_6.5_all:scan                           "bash"              2 days ago           Up 2 days  
                                      jovial_mclean         
    
    docker:/root# docker commit -m "zjzc_centos6.5-m1" -a scan 1a177b16d2a6 192.168.32.150:5000/zjzc_centos6.5_m1
    a2100527968f54963d3a4cc12f5c106f51ece89e6515ce8dc48e9af62e9f20e5
    
    docker:/root# docker images
    REPOSITORY                                    TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
    192.168.32.150:5000/zjzc_centos6.5_m1         latest              a2100527968f        7 seconds ago       1.072 GB
    
    
     -m, --message=      Commit message  
      
      
      
     -a, --author=       Author (e.g., "John Hannibal Smith <hannibal@a-team.com>"
    
    
    
    docker push 192.168.32.150:5000/zjzc_centos6.5_m1
    
    
    查看仓库镜像:
    docker:/root# curl http://192.168.32.150:5000/v1/search

  • 相关阅读:
    QR 编码原理(二)
    QR二维码原理(一)
    UML类图表达
    位运算以及逻辑运算
    SLAM数据集整理
    graph slam BACK END 相关技术资料收集
    Topic与Queue
    集群、分布式与微服务
    spring手动配置
    spring项目gitignore
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13350937.html
Copyright © 2020-2023  润新知