一、进入网址:https://hub.docker.com/
注册账号
创建repositories、我这里创建的是jmymomo/nginx
二、虚拟机操作
查看当前docker镜像列表:
[root@docker02 ~]# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx 1.14 295c7be07902 19 months ago 109MB
登录docker hub账号
[root@docker02 ~]# 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: jmymomo
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