docker上传镜像到官网

IT
IT
IT
335
文章
1
评论
2020年5月15日14:12:31 评论 1,165 1360字阅读4分32秒

创建存储库和镜像名称一致

首先在https://hub.docker.com/官网申请一个docker hub 帐号,该账号是免费申请的。

docker上传镜像到官网

给镜像打tag

[root@iZj6cffp8anaguadrxuwx8Z ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
centoscn v1.2 4dcb3bc76886 6 hours ago 616MB
bbs.centoscn.vip_google latest 4dcb3bc76886 6 hours ago 616MB
bbs.centoscn.vip_google v1.0 4dcb3bc76886 6 hours ago 616MB
bbs.centoscn.vip_google v1.2 4dcb3bc76886 6 hours ago 616MB
bbs.centoscn.vip_google_m latest 4dcb3bc76886 6 hours ago 616MB
centos 7.2.1511 4cbf48630b46 2 months ago 195MB
[root@iZj6cffp8anaguadrxuwx8Z ~]# docker tag 4dcb3bc76886 centoscn/bbs.centoscn.vip_google:v1.1.1
[root@iZj6cffp8anaguadrxuwx8Z ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
centoscn/bbs.centoscn.vip_google v1.1.1 4dcb3bc76886 6 hours ago 616MB
centoscn v1.2 4dcb3bc76886 6 hours ago 616MB
bbs.centoscn.vip_google latest 4dcb3bc76886 6 hours ago 616MB

登陆账号

[root@iZj6cffp8anaguadrxuwx8Z ~]# docker login
Authenticating with existing credentials...
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@iZj6cffp8anaguadrxuwx8Z ~]# docker push centoscn/bbs.centoscn.vip_google:v1.1.1
The push refers to repository [docker.io/centoscn/bbs.centoscn.vip_google]
ccdfc8723f21: Pushing [========================> ] 207.9MB/420.9MB
9c2f1836d493: Pushing [=====================================> ] 145.8MB/194.6MB

验证

docker上传镜像到官网

继续阅读
  • 我的QQ
  • QQ扫一扫
  • weinxin
  • 我的头条
  • 头条扫一扫
  • weinxin
IT
  • 本文由 发表于 2020年5月15日14:12:31
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
Docker部署Apollo Apollo

Docker部署Apollo

安装docker $ cd /opt/ $ sudo git clone --depth=1 https://github.com/cncentoscn/setuptools.git $ cd set...
Docker安装redis Docker

Docker安装redis

下载镜像 # docker pull redis 创建目录 # mkdir -p /home/redis/data # mkdir -p /home/redis/config 从 Redis 官方下载...
Centos8.1安装docker Docker

Centos8.1安装docker

yum方式安装 安装依赖 # yum install -y yum-utils device-mapper-persistent-data lvm2 添加仓库 # yum-config-manager...