How to build DockerHub yourself

How to build DockerHub yourself

The Docker Hub we used earlier is provided by Docker. We can also build our own Docker, and the construction method is also very container-based, because
Docker has officially made the Docker registration server into a mirror, we can just pull it down and run it. The specific steps are as follows:

Pull the image

Run the following command to pull the official registry image:

docker pull registry

run

Next, run the following command to run the registry, as follows:

docker run -itd --name registry -p 5000:5000 2e2f252f3c88

After the operation is successful, we can submit our own image to the registry as follows:

It should be noted here that the local image is named in the format of registryHost:registryPort/imageName:tag.

The container runs on the host machine. Only if the external network can access the container can the services it provides be used. This article will introduce the network knowledge in the container

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Analysis of the operating principle and implementation process of Docker Hub
  • Detailed explanation of the use of DockerHub image repository
  • How to publish a locally built docker image to dockerhub
  • Implementation of pushing Docker images to Docker Hub
  • Docker Tutorial: Docker Hub Introduction
  • Detailed explanation of how to use the official MySQL image from DockerHub
  • How to create your own Docker image and upload it to Dockerhub

<<:  Detailed explanation of the correct use of the count function in MySQL

>>:  React's transition from Class to Hooks

Recommend

Tutorial on binary compilation and installation of MySql centos7 under Linux

// It took me a whole afternoon to install this, ...

What are the benefits of semantic HTML structure?

one: 1. Semantic tags are just HTML, there is no ...

JavaScript realizes magnifying glass special effects

The effect to be achieved: When the mouse is plac...

Implementing a simple web clock with JavaScript

Use JavaScript to implement a web page clock. The...

Native JS to implement click number game

Native JS implements the click number game for yo...

In-depth explanation of binlog in MySQL 8.0

1 Introduction Binary log records SQL statements ...

Detailed explanation of how to easily switch CSS themes

I recently added a very simple color scheme (them...

Summary of javascript date tools

let Utils = { /** * Is it the year of death? * @r...

MySQL date functions and date conversion and formatting functions

MySQL is a free relational database with a huge u...

Detailed explanation of Nginx access restriction configuration

What is Nginx access restriction configuration Ng...

Solution to the long delay of MySQL database master-slave replication

Preface The delay of MySQL master-slave replicati...

Table shows the border code you want to display

Common properties of tables The basic attributes ...

Detailed process of building nfs server using Docker's NFS-Ganesha image

Table of contents 1. Introduction to NFS-Ganesha ...