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
The GtkTreeView component is an advanced componen...
Table of contents Method 1: set: It is not a data...
Table of contents 1. Resource files 2. Installati...
1. scroll-view When using vertical scrolling, you...
Table of contents Preface Front-end structure Bac...
Table of contents Preface Creating Components Sum...
by Take the effect shown in the picture as an exa...
Table of contents 1. Basic Concepts 2. Developmen...
WeChat applet: Simple calculator, for your refere...
<br />In order to manage the vehicles enteri...
Copy code The code is as follows: <select> ...
When using XAML layout, sometimes in order to make...
Written in front Often, after we install Nginx ba...
HTML text formatting tags 標簽 描述 <b> 定義粗體文本 ...
Table of contents 1. Developer Platform Configura...