Dcoker入门
第二章 使用公共镜像仓库
前言
Docker自学记录,阿里云服务器。
一、新建仓库
注册账号,官网:https://hub.docker.com/

二、推送镜像
1.docker login
docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: hunoob
Password:
Login Succeeded
2.docker tag
docker tag hello-world hunoob/hello-world
3.docker push
docker push hunoob/hello-world
The push refers to a repository [docker.io/hunoob/hello-world]
9c27e219663c: Mounted from library/hello-world
latest: digest: sha256:90659bf80b44ce6be8234e6ff90a1ac34acbeb826903b02cfa0da11c82cbc042 size: 525
本文介绍了如何使用Docker官方仓库进行镜像的推送过程。包括注册账号、登录Docker Hub、标记镜像及推送镜像的具体步骤。通过实例演示了从本地到远程仓库的完整流程。
4644

被折叠的 条评论
为什么被折叠?



