Automatically create Docker images on Docker Hub

0. Recently playing Kubernetes , all kinds of wall. Using Vultr's Ubuntu to download the Kubernetes image, and then docker save it back to the domestic machine, it is very troublesome, and Vultr's virtual machine has traffic restrictions. So try Docker Hub to directly image and pull to your own machine.

 

1. Create a repository on github and write the corresponding DockerFile, such as

FROM gcr.io/google_containers/etcd-amd64:3.1.10

 

2. Mutual trust between Docker hub and Github

 

3. Create an Auto build on Docker hub and associate the repository on Github

 

4. Set, execute, and view the output log

 

5. You can see in the log that the image has been pushed to index.docker.io, you can pull the image on your own machine docker-registry:5000/library/kube-proxy-amd64:v1.9.0

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325689921&siteId=291194637