Overview of Docker Hub
The Docker Hub is a cloud-based registry service for building and shipping application or service containers. It provides a centralized resource for container image discovery, distribution and change management, user and team collaboration, and workflow automation throughout the development pipeline.
Specifically, Docker Hub provides the following major features and functions:
- Image Repositories: Find, manage, and push and pull images from community, official, and private image libraries.
- Automated Builds: Automatically create new images when you make changes to a source GitHub or Bitbucket repository.
- Webhooks: A feature of Automated Builds, Webhooks let you trigger actions after a successful push to a repository.
- Organizations: Create work groups to manage user access to image repositories.
- GitHub and Bitbucket Integration: Add the Hub and your Docker Images to your current workflows.
Create a Docker Hub account
To explore Docker Hub, you’ll need to create an account by following the directions in Hub Accounts. You can create an account and use the Hub with one private repo for free. If you need more private repos, you can upgrade from your free account to a paid plan. To learn more, log in to the Hub and go to Billing & Plans, which you access via the Settings menu (gear icon at upper right).
Work with Docker image repositories
The Docker Hub provides you and your team with a place to build and ship Docker images.
You can configure Docker Hub repositories in two ways:
- Repositories, which allow you to push images at will from your local Docker daemon to the Hub, and
- Automated Builds, which allow you to configure GitHub or Bitbucket to trigger the Hub to rebuild repositories when changes are made to the repository.
You can create public repositories which can be accessed by any other Hub user, or you can create private repositories with limited access you control.
Docker commands and Docker Hub
There are two ways you can search for public repositories and images available
on the Docker Hub. You can “Search” on the Docker Hub website, or
docker search for all the repositories and images using the Docker commandline
$ docker search ubuntu
Both will show you a list of the currently available public repositories on the Docker Hub which match the provided keyword.
A private repository won’t be listed in the repository search results. To see all the repositories you can access and their status, view your “Dashboard” page on Docker Hub.
You can find more information on working with Docker images in the Docker userguide.
Use Official Repositories
The Docker Hub contains a number of Official Repositories. These are public, certified repositories from vendors and contributors to Docker. They contain Docker images from vendors like Canonical, Oracle, and Red Hat that you can use as the basis to building your applications and services.
With Official Repositories you know you’re using an optimized and up-to-date image that was built by experts to power your applications.
Note: If you would like to contribute an Official Repository for your organization or product, see the documentation on Official Repositories on Docker Hub for more information.
Learn how to create a Docker Hub account and manage your organizations and teams.