Create an automatically built image on docker hub (including Dockerfile)

There are two ways to create images on docker hub:

1. Ordinary image, this image is uploaded to the docker hub after being built locally, this image is invisible to the user Dockerfile

2. Automatic mirroring, this kind of mirroring is hooked up with docker hub through github or bitbucket project, and docker hub will automatically build. Docker hub will automatically display the Dockerfile in the project.



 After choosing Create Automated Build, it will let you authorize it with github, and then put a github project first, and that's it.

If the Dockerfile is located in the project root directory, there is no need to set it up. If it is not in the root directory, then go to build settings to set the location of the dockerfile.

After creation, you can see the results in about ten minutes.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326679019&siteId=291194637