# 提交镜像到阿里云私用仓库

# 介绍

[TOC]

主机配置:

主机名 IP地址
worker 192.168.153.100

系统:CentOS7

版本:19.03.5

1. 提交nginx镜像到阿里云私有仓库

  • 登录阿里云
docker login --username=xxxx registry.cn-hangzhou.aliyuncs.com
1
  • docker images,查看nginx镜像id
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
nginx               latest              0901fa9da894        10 days ago         132MB
php-apache-mysql    lastest             ffa781339da3        2 months ago        414MB
php-apache-mysql    latest              ffa781339da3        2 months ago        414MB
php                 7.4-apache          b7ec96dce970        2 months ago        414MB
php                 5.6-apache          24c791995c1e        18 months ago       355MB
1
2
3
4
5
6
  • 给镜像打tag
docker tag 0901fa9da894 registry.cn-hangzhou.aliyuncs.com/ws-rat/hub:1.0.0
1
  • 推送镜像
docker push registry.cn-hangzhou.aliyuncs.com/ws-rat/hub:1.0.0
1