注册dockerhub账户
linux安装docker
参考[]()
docker login 登陆到dockerhub
> 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: dida666
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
docker login
回车后需要填写刚刚注册的账号和密码,看到
Login Succeeded 提示,标明已经登录成功。
docker push 镜像
dockerhub创建repository
docker push
docker push 用户名/镜像名:标签名