dockerhub
註冊dockerhub賬戶
登陸成功
在我們伺服器上提交自己的映象
[root@izbp1cs2xc0txtdbbhn53nz ~]
# docker login --help
usage: docker login [options]
[server]
log in to a docker registry.
if no server is specified, the default is defined by the daemon.
options:
-p, --password string password
--password-stdin take the password from stdin
-u, --username string username
登陸完畢之後 就可以提交映象了
[root@izbp1cs2xc0txtdbbhn53nz ~]
# docker login -u chenluyao130
password:
warning! your password will be stored unencrypted in /root/.docker/config.json.
configure a credential helper to remove this warning. see
login succeeded
#提交映象
[root@izbp1cs2xc0txtdbbhn53nz ~]
# docker push diytomcat:1.0
the push refers to repository [docker.io/library/diytomcat]
tag does not exist: diytomcat:1.0
[root@izbp1cs2xc0txtdbbhn53nz ~]
# docker push chen/diytomcat:latest
the push refers to repository [docker.io/chen/diytomcat]
an image does not exist locally with the tag: chen/diytomcat
#遇到這個問題 解決辦法 去曾加乙個映象名
[root@izbp1cs2xc0txtdbbhn53nz ~]
# docker tag ca90030a7c4f chen/tomcat:1.0
# 上傳成功
[root@izbp1cs2xc0txtdbbhn53nz ~]
# docker push chenluyao130/tomcat:2.0
the push refers to repository [docker.io/chenluyao130/tomcat]
8a3c47b9ced1: pushed
821b829dce24: preparing
b9a5c556a205: pushing [
====
==>
] 1.443mb/10.94mb
18b7ef9305cd: pushing [
>
] 4.318mb/426.7mb
291f6e44771a: pushing [
>
] 2.725mb/215.1mb
Docker 發布映象到Docker Hub
此處參考網上資料 docker hub 按步驟操作即可,需要郵箱驗證啟用 專案可建立為public和private兩種型別 按照描述,我們可以理解public是可以在docker hub上被人檢索檢視的,private則只有自己可見。即共享和私有。上圖是我自己建立的兩個專案,乙個共享專案,乙個私有專...
上傳映象到DockerHub
注 full description符合markdown語法,可以先在md編輯器寫好後複製貼上進來儲存即可。建立完成後也可在倉庫主頁面編輯full description docker tag phy pp 1.7 1 hub name repository name tag hub name 為註...
上傳docker映象到docker hub
這一是上次建立乙個映象的教程 此處上傳的映象就是上個文章中涉及建立的映象 一 登入docker,沒有docker hub 的則去官網 建立賬號 注意 daocloud的push上傳映象收費,所以此處用的是docker hub的賬號,daocloud請參考 docker login然後會提醒你輸入使用...