Tom Doe
Tom Doe

Reputation: 906

DockerHub + GitHub with a team

I'm not sure I understand the point of DockerHub. I understand GitHub as a code repository, but DockerHub kinda throws me through a loop. When I share code with a team we use GitHub, but DockerHub would be for the images and volumes? So a new team member pulls that down from DockerHub, and then once that's up and running with docker-compose up, then they run git pull origin master so the code will be updated?

Please help me understand this. :)

Upvotes: 1

Views: 110

Answers (1)

Wade Williams
Wade Williams

Reputation: 4160

From Docker Docs: Docker Hub is a cloud-based registry service which allows you to link to code repositories, build your images and test them, stores manually pushed images, and links to Docker Cloud so you can deploy images to your hosts. It provides a centralized resource for container image discovery, distribution and change management, user and team collaboration, and workflow automation throughout the development pipeline.

GitHub hosts the code, and the code is managed via git, which is the best way to handle the source code changes. DockerHub provides the bits that GitHub isn't meant for: registering your dockerfiles, building the images, etc.

DockerHub organizations & team functionality give your team access to these shared image repositories.

Organizations on GitHub and DockerHub function in a similar manner, but are complementary services because they handle totally different jobs.

Upvotes: 1

Related Questions