Publish images (Dockerhub and Alibaba Cloud in two ways)

Publish mirror

Publish to Dockerhub

First, make sure that your Dockerhub can log in. Log in
Insert picture description here
according to the user name, and enter your password after entering

docker login  -u liufucheng 

Insert picture description here
In order to make the image easy to use, regenerate the image with version number and level name

View original image

 docker images

Insert picture description here
Generate a new image

docker tag d5c4408c9088 liufucheng/diytomcat:1.0

Insert picture description here
Publish the new image to Dockerhub

 docker push liufucheng/diytomcat:1.0

Publish to Alibaba Cloud

Add a namespace to your Alibaba Cloud container image service
Insert picture description here
Create an image warehouse
Insert picture description here
Insert picture description here
Enter the management page
Insert picture description here
Insert picture description here
Publish images according to the commands on the management page

log in

docker login --username=loveliufucheng registry.cn-zhangjiakou.aliyuncs.com

Insert picture description here
release

  docker tag d5c4408c9088 registry.cn-zhangjiakou.aliyuncs.com/liufucheng_docker/dockerdiytomcat:1.0
  docker push registry.cn-zhangjiakou.aliyuncs.com/liufucheng_docker/dockerdiytomcat:1.0

Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_45742032/article/details/111593674