Automated build means using Docker Hub to connect to a GitHub repository or BitBucket repository containing a Dockerfile file. Docker Hub will automatically build the image. The image built in this way will be marked as Automated Build, also known as Trusted Build. When using the image built in this way, others can freely view the Dockerfile content and know where the image came from. At the same time, since the build process is automatic, it can ensure that the images in the warehouse are the latest. The specific construction steps are as follows: Add a warehouse First, log in to Docker Hub, click Create in the upper right corner, and then select Create Automated Build, as shown below: On the new page, select the Link Account button, then select Connect to GitHub. On the connection method selection page, select the first connection method, as follows: After the selection is completed, follow the instructions to log in to GitHub and complete the authorization operation. The page after authorization is completed is as follows: Build the image After the authorization is completed, click the Create button in the upper right corner again, select Create Automated Build, and select GitHub on the page that opens, as shown in the following two pictures: Here is the repository on GitHub that was just linked. There is only one docker, and then click in, as follows: Fill in the name and description of the image, then click the Create button. The creation result is as follows: After that, even if our image is built successfully, once the Dockerfile file in the GitHub repository is updated, the image build on Docker Hub will be automatically triggered without manual intervention, thus ensuring that the image is always up to date. Next, users can get the image through the following command: docker pull wongsung/nginx2 After getting the image, just run it. 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:
|
<<: MySQL data operation-use of DML statements
>>: Vue implements calling PC camera to take photos in real time
Table of contents 1. Anonymous slots 2. Named slo...
Mysql is a mainstream open source relational data...
The specific code is as follows: package epoint.m...
Custom tags can be used freely in XML files and HT...
When talking about this issue, some people may ask...
Table of contents 1. Overview 1. Explain statemen...
MySQL 5.7.20 installation and configuration metho...
When key is not added to the v-for tag. <!DOCT...
When writing a web project, I encountered an intr...
Table of contents Understand the core concept of ...
Introduction Today I will share the use of the su...
When using element-ui, there is a commonly used c...
We all know that the underlying data structure of...
1. Cause: The effect after the subbox is set to f...
1. Install Baidu Eslint Rule plugin npm i -D esli...