Docker Hub

Docker Hub有两种类型的仓库:

  • 用户仓库:由用户创建
  • 顶层仓库:有Docker内部的工作人员创建并维护

docker hub注册

到官网注册:https://hub.docker.com/

在终端登录docker hub


$ sudo 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: xxxx
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 # 登录成功
[root@iz2zeg7ic2tskdsisgdkfhz ~]# 

密码会保存在/root/.docker/config.json文件中。


其他人还浏览了:



公众号

关注公众号,获取一手资讯

“ Docker Hub ” comments 0

评论/回复

电子邮件地址不会被公开。 必填项已用*标注