Similar to the code hosting service provided by GitHub, Docker Hub provides an image hosting service. The address of Docker Hub is https://hub.docker.com/. Using Docker Hub, readers can search, create, share and manage images. The images on Docker Hub are divided into two categories. One is the official image, such as nginx and mysql that we used before, and the other is the ordinary user image, which is uploaded by the user himself. For domestic users, if you feel that the access speed of Docker Hub is too slow, you can use the images provided by some domestic companies, such as For example, NetEase: https://c.163yun.com/hub This article uses Docker Hub. Readers who are interested can try NetEase's mirror site. First, the reader opens the Docker Hub and registers an account. This is relatively simple, so I will not go into details. After the account is successfully registered, you can log in to the account we just registered in the client command line as follows: If you see Login Succeeded, it means your login is successful! After logging in successfully, we can then use the push command to upload our homemade image. Note that for a self-made image to be uploadable, the naming must meet the specification, that is, the namespace/name format, where namespace must be the user name. Taking the Dockerfile we created in the previous article as an example, here we rebuild a local image and upload it to Docker Hub, as follows: First, call the docker build command to rebuild a local image. After the build is successful, you can see that there is already an image named wongsung/nginx locally through the docker images command. Next, use the docker push command to upload the image to the server. After the upload is successful, the user logs in to Docker Hub and can see that the image has been uploaded successfully, as shown below: Seeing this means that the image has been uploaded successfully. Next, others can download the image I just uploaded using the following command: After pulling it down, you can create a container directly based on the image. 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:
|
>>: Javascript design pattern prototype mode details
This article shares the specific code of Vue3 man...
1. Problem description: MysqlERROR1698 (28000) so...
Preface add_header is a directive defined in the ...
Custom Image FAQ How to view the data disk? You c...
Preface When operating and managing Linux servers...
<br />Previous tutorial: Web Design Tutorial...
In the case of concurrent access, non-repeatable ...
Data display has always been a demand that all wa...
Table of contents 1. jsonp cross-domain 2. docume...
Table of contents SSH protocol SSH Connection pro...
Designers need to understand psychology reading n...
Table of contents Diffing Algorithm Layer-by-laye...
Array deduplication is usually encountered during...
Preface PC Server has developed to this day and h...
The following content introduces the process and ...