# 登陆
[root@docker ~]# 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: sanduzxcvbnm # 用户名
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 # 提示登陆成功
# 查看本地镜像,这里以test08:latest为例
[root@docker ~]# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
test08 latest 70d9e30711b8 43 hours ago 342MB
test07 latest 0af64ce0aa24 45 hours ago 342MB
test06 latest 82c6144cb7fc 45 hours ago 343MB
# 本地镜像制作tag
[root@docker ~]# docker tag test08:latest sanduzxcvbnm/elastalert_docker_webui:v0.1 # 注意:镜像名只能用小写字母,不能用大写字母,前面也不加网址
# 推送
[root@docker ~]# docker push sanduzxcvbnm/elastalert_docker_webui:v0.1
The push refers to repository [docker.io/sanduzxcvbnm/elastalert_docker_webui]
e12588ee7473: Pushed
9754f5e52510: Pushed
896a4a00d7ce: Pushed
42aea051bfc7: Pushed
aff37ab119ac: Pushed
f92013938eb0: Pushed
8c5aeb996db9: Pushed
11728c14a84b: Pushed
3c151af517a9: Pushed
012ee5252925: Pushed
d50122a672d7: Pushed
2a3ecc131706: Pushed
438573fbc0aa: Pushed
7d5d14aefdb6: Pushed
e09f44fdcc72: Mounted from library/node
72c6b9564b6f: Mounted from library/node
c07ca0ca00d5: Mounted from library/node
3e207b409db3: Mounted from anjia0532/elastalert-docker
v0.1: digest: sha256:487714316d50f6ced402a3d2a900aad2d68f92341ab79fee7464ffcf421ab7b0 size: 4083
# 查看