zoukankan      html  css  js  c++  java
  • docker hub push 本地镜像文件

    1.如何镜像重命名:

    第一种方法: docker tag  localimage-id    repo:new_tag 

    chenyangdeMacBook-Pro:~ chenyang$ docker images

    REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE

    hello-world         latest              fce289e99eb9        9 weeks ago         1.84 kB

    chenyangdeMacBook-Pro:~ chenyang$ docker tag fce289e99 hello-world:v1

    chenyangdeMacBook-Pro:~ chenyang$ docker images

    REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE

    hello-world         latest              fce289e99eb9        9 weeks ago         1.84 kB

    hello-world         v1                  fce289e99eb9        9 weeks ago         1.84 kB

    第二种方法:docker  tag  repo-name/tag  repo:new_tag 

    最后docker push :

    [root@110_151 Dockerfile]# docker push 329054/nginx 

    The push refers to repository [docker.io/329054/nginx]

    55a77731ed26: Mounted from library/nginx 

    71f2244bc14d: Mounted from library/nginx 

    f2cb0ecef392: Mounted from library/nginx 

     技术群:

  • 相关阅读:
    能用HTML/CSS解决的问题,就不要用JS
    跨域
    从输入url到页面展示到底发生了什么
    hosts 文件
    了解Web及网络基础
    hybrid
    组件化和 React
    MVVM 和 VUE
    虚拟 DOM
    ES6模块化与常用功能
  • 原文地址:https://www.cnblogs.com/SunshineKimi/p/12567252.html
Copyright © 2011-2022 走看看