本文示例将鏡像推送到阿裡雲鏡像倉庫。
目錄
一、建立鏡像倉庫
二、将鏡像推送到Registry
一、建立鏡像倉庫
建立成功後,點選倉庫名稱。有上傳鏡像、拉取鏡像的示例代碼。
二、将鏡像推送到Registry
第一步:登入阿裡雲Docker Registry
[[email protected] ~]# sudo docker login [email protected] registry.cn-shenzhen.aliyuncs.com
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
[[email protected] ~]#
第二步:将鏡像推送到Registry
推送完成後,就能看到版本資訊。