How to associate Dockerhub with GitHub

Source: Internet
Author: User
Tags docker hub

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.