云原生学习

学习k8s的实验资料


如何向docker hub上传镜像

1.登录docker hub

[root@karen ~]# 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: <docker hub用户名>
Password: <docker hub密码>

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

2.给你的镜像打一个标签 [root@karen ~]# docker tag onbuild-nginx:v1 karen/onbuild-nginx:v1 tag <本地镜像名> <标签名> onbuild-nginx:v1 镜像名 karen:docker hub用户名

3.上传镜像 [root@karen ~]# docker push karen/onbuild-nginx:v1

页面列表

ITEM_HTML