Benefits of association:
After making changes to the Dockerfile file on GitHub, the Dockerhub is automatically build on the cloud, making it easy to
Premise: Requires Dockerhub and GitHub account
(1) On Dockerhub click on the settings
(2) Find "Linked Accounts & Services" In Settings, select "Link Github"
(3) In the popup screen, select "Public and Private (Recommended)" At the "select"
Note here: A GitHub account can only be associated with one Dockerhub account!
Please note:a Github/bitbucket account can is connected to the one Docker hub account at A time.
(4) browser is linked to GitHub website, select "Authorize Application"
(5) The browser is also linked back to Dockerhub
(6) Set in setting in Dockerhub
Build a repositories called Dockerfiles on GitHub
(7) In Dockerhub, enter Create->create aotomated build-> click Create auto-build
(8) The following results can be seen, you can choose which repositories to associate with GitHub, at this time, select "Dockerfiles"
How to associate a different folder under Dockerfiles-repositories in GitHub with a different automated build in Dockerhub
(1) Create automated build
(2) Select "Create auto-build Github"
(3) Select "Dokcerfiles"
(4) This step is crucial! (for example, you need to associate the Auto-build with the Dockerfile_caffe_theano_keras under dokcerfiles-repositories under GitHub)
To click on "Click here to customize", enter "Dockerfile_caffe_theano_keras" in Dockerfile location, This item is used to control which folder in the Autobuild is associated with the Github-dockerfiles
By default, it is associated with a file named "Dockerfile" in Github-dockerfiles
Note:
The "Dockerfile1" above is the name of the Autobuild,
The following Dockerfile_caffe_theano_keras is the folder under Dockerfiles-repositories in GitHub
(5) Click create!
Note: Dockerhub only auto-build if content changes in GitHub
How to associate Dockerhub with GitHub