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
There are many ways to generate a global ID. Here...
1. Download nginx [root@localhost my.Shells]# doc...
Table of contents Preface 1. Array traversal meth...
Preface 1. Benchmarking is a type of performance ...
I finished reading "Patterns for Sign Up &...
In the page, external files such as js, css, etc. ...
Note: This demo is tested in the mini program env...
In the development process of Vue project, for th...
Since HTML email is not an independent HOST page o...
1. Packetdrill compilation and installation Sourc...
Chinese documentation: https://router.vuejs.org/z...
1. Usage of instanceof instanceof operator is use...
webpack loads css files and its configuration Aft...
W3C, an organization founded in 1994, aims to unl...
This article uses an example to describe how MySQ...