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

Determine whether MySQL update will lock the table through examples

Two cases: 1. With index 2. Without index Prerequ...

The linkage method between menu and tab of vue+iview

Vue+iview menu and tab linkage I am currently dev...

Detailed explanation of the execution order of JavaScript Alert function

Table of contents question analyze solve Replace ...

OpenSSL implements two-way authentication tutorial (with server and client code)

1. Background 1.1 Problems A recent product testi...

How to deploy the crownblog project to Alibaba Cloud using docker

Front-end project packaging Find .env.production ...

Teach you a trick to achieve text comparison in Linux

Preface In the process of writing code, we will i...

15 JavaScript functions worth collecting

Table of contents 1. Reverse the numbers 2. Get t...

centos7.2 offline installation mysql5.7.18.tar.gz

Because of network isolation, MySQL cannot be ins...

mysql solves the problem of finding records where two or more fields are NULL

Core code /*-------------------------------- Find...

js realizes two-way data binding (accessor monitoring)

This article example shares the specific code of ...

Example of how to import nginx logs into elasticsearch

The nginx logs are collected by filebeat and pass...

vue-element-admin global loading waiting

Recent requirements: Global loading, all interfac...