Previously, the images we used were all pulled from the DockerHub public repository. We also learned how to make our own images, but backing up, restoring and migrating images through tar packages is not particularly friendly for team collaboration development. We can also push the images to the DockerHub repository for easy use. Tips: If the built image contains project data, it is recommended to use a private repository. Register an account Official website: https://hub.docker.com/ Login Account Use the Push the image to the warehouse To facilitate testing, we pull the First set the tag Then push the image to the repository docker tag hello-world:latest mrhelloworld/test-hello-world:1.0.0 docker push mrhelloworld/test-hello-world:1.0.0 View Warehouse Pull the image Test whether the image can be pulled by Log out Exit DockerHub using the [root@localhost ~]# docker logout Removing login credentials for https://index.docker.io/v1/ This is the end of our learning on how to use the DockerHub image repository. Considering network reasons, the speed of downloading and uploading images from DockerHub may be slow. In addition, the Docker images used in production may contain our code, configuration information, etc., which we do not want to be obtained by outsiders, so only developers on the intranet are allowed to download them. How to solve it? This can be achieved by building a private image repository. Let's learn how to build a Docker private image repository below. This is the end of this article about the detailed use of DockerHub image repository. For more information about the use of DockerHub image repository, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: The practical process of login status management in the vuex project
>>: Detailed explanation of MySQL clustered index and non-clustered index
How to host two or more sites on the popular and ...
Table of contents Multi-application deployment 1-...
Locks in MySQL Locks are a means to resolve resou...
Start the mysql container in docekr Use command: ...
introduce Monitors the health of HTTP servers in ...
1. How do I remove the blank space of a few pixels...
First, perform a simple Docker installation. To c...
Compared with vue2, vue3 has an additional concep...
Table of contents 1. Component 2. keep-alive 2.1 ...
Lists are used to list a series of similar or rela...
illustrate MySql Community Edition supports table...
1. Pull the image docker pull registry.cn-hangzho...
Table of contents 1. Background 2. Understanding ...
Table of contents Project Background Improvement ...
In order to centrally manage the images we create...