About the Docker Hub
The Docker Hub is a cloud-based registry service forbuilding and shipping application or service containers. It provides a centralized resource for containerimage discovery, distribution and change management, user and teamcollaboration, 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 thedirections 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 totrigger 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
Docker itself provides access to Docker Hub services via the docker search
,pull
, login
, and push
commands.
Explore repositories
There are two ways you can search for public repositories and images availableon the Docker Hub. You can “Search” on the Docker Hub website, oryou can docker search
for all the repositories and images using the Docker commandlinetool:
$ docker search ubuntu
Both will show you a list of the currently available public repositories on theDocker Hub which match the provided keyword.
A private repository won’t be listed in the repositorysearch 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 OfficialRepositories. These are public,certified repositories from vendors and contributors to Docker. Theycontain Docker images from vendors like Canonical, Oracle, and Red Hatthat you can use as the basis to building your applications and services.
With Official Repositories you know you’re using an optimized andup-to-date image that was built by experts to power your applications.
Note:If you would like to contribute an Official Repository for yourorganization or product, see the documentation on Official Repositories on DockerHub for more information.
Create organization
Learn how to create a Docker Hubaccount and manage your organizations and teams.