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