Docker上传镜像

本文介绍了如何上传Docker镜像到Docker Hub。首先,需要注册账号并创建repositories。接着,在虚拟机中查看镜像列表,登录Docker Hub账号,并为镜像打标签。最后,执行上传操作并验证镜像是否成功上传。
摘要由CSDN通过智能技术生成

一、进入网址: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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值