從個人docker_hub上傳_下載鏡像

來源:互聯網
上載者:User

標籤:push   pull   docker   docker hub   

flyer520對docker鏡像下載和上傳執行個體:

第1步,註冊docker-hub帳號。在https://hub.docker.com/網站註冊。

註:我的帳號是flyer520,郵箱[email protected]

 

第2步,linux登入docker測試。

我的帳號:dockerlogin  --username=flyer520  [email protected]  (登入OK)

查看登入資訊:cat  ~/.docker/config.json

 

第3步,下載docker鏡像。

docker  pull busybox

docker  pull  nginx

docker  images

 

第4步,修改標籤(重設標籤)。

測試1:修改nginx標籤,並push上傳到flyer520的docker-hub中。

docker  tag  nginx  flyer520/nginx

docker  push flyer520/nginx

 

測試2:修改busybox標籤,並push上傳到flyer520的docker-hub中。

docker  tag  busybox  flyer520/busybox

docker  push flyer520/busybox

 

驗證:登入到docker-hub,查看是否多了nginx鏡像。

 650) this.width=650;" src="https://s3.51cto.com/wyfs02/M01/A2/84/wKioL1mhLtbTn3VpAACk9xJHD2Q721.png" width="1180" height="506" alt="wKioL1mhLtbTn3VpAACk9xJHD2Q721.png" />


 


本文出自 “網路技術天地” 部落格,請務必保留此出處http://1364952.blog.51cto.com/1354952/1959550

從個人docker_hub上傳_下載鏡像

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.