How to publish a locally built docker image to dockerhub

How to publish a locally built docker image to dockerhub

Today we will introduce how to publish the local docker project image to dockerhub. Without further ado, let's get straight to the point:

(1) Register a Dockerhub account;

(2) After the account is registered, we create a warehouse to store the image

(3) At this point, we can see the successful creation of the interface repository path: nbidashboard/nbiplatform


(4) View local container information

sudo docker ps 


(5) Submit container:

sudo docker commit CONTAINER ID nbidashboard/nbiplatform

sudo docker push nbidashboard/nbiplatform:latest 


(6) After the upload is complete, we use the command to verify whether the submitted information is successful:

sudo docker inspect nbidashboard/nbiplatform:latest 


(7) At this point, our entire operation has been completed, and we can already see the image we provided in Dockerhub:


This is the end of this article on how to publish locally built docker images to dockerhub. For more information about publishing docker images to dockerhub, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to publish Docker images to Docker Hub
  • How to configure docker in IDEA2021.2 to image the springboot project and release it with one click
  • Docker-compose image release process analysis of springboot project
  • Detailed steps for building, running, publishing, and obtaining a Docker image for the first time
  • How to use Docker to publish local images to Alibaba Cloud

<<:  javascript to switch pictures by clicking a button

>>:  mysql 8.0.19 winx64.zip installation tutorial

Recommend

Summary of methods for inserting videos into HTML pages

Now if you want to use the video tag in a page, y...

Markup validation for doctype

But recently I found that using this method will c...

Let's talk in detail about the direction of slow SQL optimization in MySQL

Table of contents Preface SQL statement optimizat...

WeChat applet to save albums and pictures to albums

I am currently developing a video and tool app, s...

How to manage multiple projects on CentOS SVN server

One demand Generally speaking, a company has mult...

CSS flex several multi-column layout

Basic three-column layout .container{ display: fl...

How to view mysql binlog (binary log)

For example, when you create a new table or updat...

MySQL 8.0.15 installation and configuration tutorial under Win10

What I have been learning recently involves knowl...

Some front-end basics (html, css) encountered in practice

1. The div css mouse hand shape is cursor:pointer;...

Vue implements adding watermark to uploaded pictures

This article shares the specific implementation c...