Need advice about which tool to choose?Ask the StackShare community!

Docker Hub

222
261
+ 1
7
GitHub

284.3K
248.2K
+ 1
10.3K
Add tool

Docker Hub vs GitHub: What are the differences?

Key Differences between Docker Hub and GitHub

Introduction

In the world of software development and deployment, Docker Hub and GitHub are two popular platforms that serve different purposes. While Docker Hub is focused on hosting and sharing containerized applications, GitHub is primarily used for version control and collaborative software development. This article aims to highlight the key differences between Docker Hub and GitHub.

  1. Storage and Hosting: Docker Hub is primarily a container registry that allows developers to store and share Docker images. It provides a centralized platform for hosting containerized applications and allows easy distribution and deployment of images. On the other hand, GitHub is a code hosting platform that offers version control repositories. It enables developers to store and manage their codebase, collaborate with others, and track changes over time.

  2. Focus: Docker Hub is specifically designed for Docker-based containerization. It provides a platform for developers to store, share, and pull Docker images from a central repository. It includes features like automated builds, image signing, and image tagging. GitHub, on the other hand, caters to a broader range of software development needs. It supports various programming languages and frameworks, offering features like issue tracking, pull requests, code reviews, and project management tools.

  3. Community and Collaboration: Docker Hub fosters a community of Docker users and provides a platform for developers to share their containerized applications with others. It allows users to collaborate on Docker images, making it easier to build upon existing work. GitHub, on the other hand, has a larger focus on collaboration. It offers features like pull requests, code reviews, and commenting, enabling developers to collaborate on codebases, contribute changes, and discuss ideas.

  4. Deployment and Continuous Integration: Docker Hub emphasizes the deployment of containerized applications. It supports automated builds, allowing developers to build and deploy Docker images directly from their code repositories. GitHub, on the other hand, provides integrations with various continuous integration and deployment tools. It allows developers to set up workflows and pipelines to automatically build, test, and deploy their applications.

  5. Licensing and Open Source: GitHub has a strong affiliation with open-source software. It provides a platform for hosting open-source projects and encourages developers to make their code publicly accessible. It offers features like licenses, project templates, and contribution guidelines. Docker Hub, although widely used for open-source projects, does not have the same level of emphasis on promoting open source. It primarily focuses on providing a registry for Docker images, regardless of their open-source or proprietary nature.

  6. Pricing and Cost: Docker Hub offers both free and paid plans. While the free plan allows for basic usage, the paid plans provide additional features like private repositories, increased storage limits, and enhanced support. GitHub offers a similar pricing structure, with free plans for public repositories and paid plans for private repositories. The cost may vary based on factors like storage size, number of collaborators, and additional features.

In Summary, Docker Hub is a container registry platform focused on hosting and sharing Docker images, while GitHub is a code hosting platform for version control and collaborative software development. Docker Hub is specialized in containerization and deployment, while GitHub offers a broader range of development tools and features.

Decisions about Docker Hub and GitHub
Weverton Timoteo

Do you review your Pull/Merge Request before assigning Reviewers?

If you work in a team opening a Pull Request (or Merge Request) looks appropriate. However, have you ever thought about opening a Pull/Merge Request when working by yourself? Here's a checklist of things you can review in your own:

  • Pick the correct target branch
  • Make Drafts explicit
  • Name things properly
  • Ask help for tools
  • Remove the noise
  • Fetch necessary data
  • Understand Mergeability
  • Pass the message
  • Add screenshots
  • Be found in the future
  • Comment inline in your changes

Read the blog post for more detailed explanation for each item :D

What else do you review before asking for code review?

See more
Weverton Timoteo

Using an inclusive language is crucial for fostering a diverse culture. Git has changed the naming conventions to be more language-inclusive, and so you should change. Our development tools, like GitHub and GitLab, already supports the change.

SourceLevel deals very nicely with repositories that changed the master branch to a more appropriate word. Besides, you can use the grep linter the look for exclusive terms contained in the source code.

As the inclusive language gap may happen in other aspects of our lives, have you already thought about them?

See more
Weverton Timoteo

One of the magic tricks git performs is the ability to rewrite log history. You can do it in many ways, but git rebase -i is the one I most use. With this command, It’s possible to switch commits order, remove a commit, squash two or more commits, or edit, for instance.

It’s particularly useful to run it before opening a pull request. It allows developers to “clean up” the mess and organize commits before submitting to review. If you follow the practice 3 and 4, then the list of commits should look very similar to a task list. It should reveal the rationale you had, telling the story of how you end up with that final code.

See more
Kamaleshwar BN
Senior Software Engineer at Pulley · | 8 upvotes · 693.1K views

Out of most of the VCS solutions out there, we found Gitlab was the most feature complete with a free community edition. Their DevSecops offering is also a very robust solution. Gitlab CI/CD was quite easy to setup and the direct integration with your VCS + CI/CD is also a bonus. Out of the box integration with major cloud providers, alerting through instant messages etc. are all extremely convenient. We push our CI/CD updates to MS Teams.

See more

Gitlab as A LOT of features that GitHub and Azure DevOps are missing. Even if both GH and Azure are backed by Microsoft, GitLab being open source has a faster upgrade rate and the hosted by gitlab.com solution seems more appealing than anything else! Quick win: the UI is way better and the Pipeline is way easier to setup on GitLab!

See more
Nazar Atamaniuk
Shared insights
on
DeployPlaceDeployPlaceGitHubGitHubGitLabGitLab

At DeployPlace we use self-hosted GitLab, we have chosen GitLab as most of us are familiar with it. We are happy with all features GitLab provides, I can’t imagine our life without integrated GitLab CI. Another important feature for us is integrated code review tool, we use it every day, we use merge requests, code reviews, branching. To be honest, most of us have GitHub accounts as well, we like to contribute in open source, and we want to be a part of the tech community, but lack of solutions from GitHub in the area of CI doesn’t let us chose it for our projects.

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Docker Hub
Pros of GitHub
  • 2
    Uses a very familiar collaboration model as GitHub, the
  • 1
    Provides public and private repositories
  • 1
    Quickly creates organizations, add users or create grou
  • 1
    Allows users to set permissions to restrict access or s
  • 1
    Fairly inexpensive with usage based pricing
  • 1
    Security scanning available
  • 1.8K
    Open source friendly
  • 1.5K
    Easy source control
  • 1.3K
    Nice UI
  • 1.1K
    Great for team collaboration
  • 867
    Easy setup
  • 504
    Issue tracker
  • 486
    Great community
  • 483
    Remote team collaboration
  • 451
    Great way to share
  • 442
    Pull request and features planning
  • 147
    Just works
  • 132
    Integrated in many tools
  • 121
    Free Public Repos
  • 116
    Github Gists
  • 112
    Github pages
  • 83
    Easy to find repos
  • 62
    Open source
  • 60
    It's free
  • 60
    Easy to find projects
  • 56
    Network effect
  • 49
    Extensive API
  • 43
    Organizations
  • 42
    Branching
  • 34
    Developer Profiles
  • 32
    Git Powered Wikis
  • 30
    Great for collaboration
  • 24
    It's fun
  • 23
    Clean interface and good integrations
  • 22
    Community SDK involvement
  • 20
    Learn from others source code
  • 16
    Because: Git
  • 14
    It integrates directly with Azure
  • 10
    Standard in Open Source collab
  • 10
    Newsfeed
  • 8
    It integrates directly with Hipchat
  • 8
    Fast
  • 8
    Beautiful user experience
  • 7
    Easy to discover new code libraries
  • 6
    Smooth integration
  • 6
    Cloud SCM
  • 6
    Nice API
  • 6
    Graphs
  • 6
    Integrations
  • 6
    It's awesome
  • 5
    Quick Onboarding
  • 5
    Reliable
  • 5
    Remarkable uptime
  • 5
    CI Integration
  • 5
    Hands down best online Git service available
  • 4
    Uses GIT
  • 4
    Version Control
  • 4
    Simple but powerful
  • 4
    Unlimited Public Repos at no cost
  • 4
    Free HTML hosting
  • 4
    Security options
  • 4
    Loved by developers
  • 4
    Easy to use and collaborate with others
  • 3
    Ci
  • 3
    IAM
  • 3
    Nice to use
  • 3
    Easy deployment via SSH
  • 2
    Easy to use
  • 2
    Leads the copycats
  • 2
    All in one development service
  • 2
    Free private repos
  • 2
    Free HTML hostings
  • 2
    Easy and efficient maintainance of the projects
  • 2
    Beautiful
  • 2
    Easy source control and everything is backed up
  • 2
    IAM integration
  • 2
    Very Easy to Use
  • 2
    Good tools support
  • 2
    Issues tracker
  • 2
    Never dethroned
  • 2
    Self Hosted
  • 1
    Dasf
  • 1
    Profound

Sign up to add or upvote prosMake informed product decisions

Cons of Docker Hub
Cons of GitHub
  • 1
    Lacks fine grain access control
  • 1
    Does not provide any insight into the registry usage
  • 1
    Lacks LDAP, SAML and OAuth support
  • 54
    Owned by micrcosoft
  • 38
    Expensive for lone developers that want private repos
  • 15
    Relatively slow product/feature release cadence
  • 10
    API scoping could be better
  • 9
    Only 3 collaborators for private repos
  • 4
    Limited featureset for issue management
  • 3
    Does not have a graph for showing history like git lens
  • 2
    GitHub Packages does not support SNAPSHOT versions
  • 1
    No multilingual interface
  • 1
    Takes a long time to commit
  • 1
    Expensive

Sign up to add or upvote consMake informed product decisions

What is Docker Hub?

It is the world's easiest way to create, manage, and deliver your teams' container applications. It is the perfect home for your teams' applications.

What is GitHub?

GitHub is the best place to share code with friends, co-workers, classmates, and complete strangers. Over three million people use GitHub to build amazing things together.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Docker Hub?
What companies use GitHub?
Manage your open source components, licenses, and vulnerabilities
Learn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Docker Hub?
What tools integrate with GitHub?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

Dec 8 2020 at 5:50PM

DigitalOcean

GitHubMySQLPostgreSQL+11
2
2424
GitHubOptimizelySegment+3
2
1189
Mar 18 2020 at 9:12AM

LaunchDarkly

GitHubLaunchDarkly+2
7
1131
JavaScriptGitHubReact+12
5
4180
GitHubDockerReact+17
41
37076
What are some alternatives to Docker Hub and GitHub?
Quay.io
Simply upload your Dockerfile (and any additional files it needs) and we'll build your Dockerfile into an image and push it to your repository.
Docker Cloud
Docker Cloud is the best way to deploy and manage Dockerized applications. Docker Cloud makes it easy for new Docker users to manage and deploy the full spectrum of applications, from single container apps to distributed microservices stacks, to any cloud or on-premises infrastructure.
Amazon ECR
It is a fully managed container registry that makes it easy to store, manage, share, and deploy your container images and artifacts anywhere. It eliminates the need to operate your own container repositories or worry about scaling the underlying infrastructure.
Kubernetes
Kubernetes is an open source orchestration system for Docker containers. It handles scheduling onto nodes in a compute cluster and actively manages workloads to ensure that their state matches the users declared intentions.
Docker
The Docker Platform is the industry-leading container platform for continuous, high-velocity innovation, enabling organizations to seamlessly build and share any application — from legacy to what comes next — and securely run them anywhere
See all alternatives