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

Writing a rock-paper-scissors game in JavaScript

This article shares the specific code for writing...

How to use docker+devpi to build local pypi source

Some time ago, I needed to use pip downloads freq...

MySQL joint table query basic operation left-join common pitfalls

Overview For small and medium-sized projects, joi...

jQuery plugin to implement minesweeper game (2)

This article shares the second article of using j...

Detailed explanation of the cache implementation principle of Vue computed

Table of contents Initialize computed Dependency ...

ffmpeg Chinese parameter description and usage examples

1. When ffmpeg pushes video files, the encoding f...

Tutorial diagram of installing mysql8.0.18 under linux (Centos7)

1 Get the installation resource package mysql-8.0...

Detailed explanation of JS ES6 variable destructuring assignment

Table of contents 1. What is deconstruction? 2. A...

W3C Tutorial (4): W3C XHTML Activities

HTML is a hybrid language used for publishing on ...

Mysql uses insert to insert multiple records to add data in batches

If you want to insert 5 records into table1, the ...

CSS style solves the problem of displaying ellipsis when the text is too long

1. CSS style solves the problem of displaying ell...

How to install openssh from source code in centos 7

Environment: CentOS 7.1.1503 Minimum Installation...

Design of image preview in content webpage

<br />I have written two articles before, &q...

Summary of Common Letters in Unicode

Most of the earliest computers could only use ASC...