3.8 KiB
description | keywords | redirect_from | title | |
---|---|---|---|---|
Get Started with Docker Hub | Docker, docker, registry, accounts, plans, Dockerfile, Docker Hub, docs, documentation, accounts, organizations, repositories, groups, teams |
|
Get Started with Docker Hub |
Docker Hub is a service provided by Docker for finding and sharing container images with your team.
Docker Hub provides the following major features:
- Repositories: Push and pull container images. Private repositories allow you to share container images with your team. Public repositories allow you to share them with anyone.
- Teams & Organizations: Manage access to private repositories.
- Official Images: Pull & use high-quality container images provided by Docker.
- Publisher Images: Pull & use high-quality container images provided by external vendors. Certified images also include support and guarantee compatibility with Docker Enterprise.
- Builds: Automatically build container images and push them to your repositories when you make changes to code in GitHub or BitBucket.
- Webhooks: Trigger actions after a successful push to a repository to integrate Docker Hub with other services.
Sign up for Docker Hub
Start by creating an account at https://hub.docker.com.
Note: You can search for and pull Docker images from Hub without logging in, however to push images or share them with your team, you must log in.
Find & Pull an Official Image
Docker Hub contains a number of Official Repositories. These are curated repositories from vendors and contributors to Docker. They contain Docker images from vendors like Canonical, Oracle, and Elastic that you can use as the basis to build your applications and services.
With Official Images 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 Image for your organization or product, see the documentation on Official Images on Docker Hub for more information.
Create your first repository and push an image to it
To create a repo:
- Log into Docker Hub
- Click on Create Repositories on the home page:
- Name it /
Next, we'll push an images
- Download Docker Desktop
docker pull redis
to pull the Official redis image from Docker Hubdocker tag redis <namespace>/redis
docker push <namespace>/redis
(insert pic here)
Upgrading your Plan
Your Docker ID includes one private Docker Hub repository for free. If you need more private repositories, you can upgrade from your free account to a paid plan.
To upgrade, log in to Docker Hub and click Upgrade Plan, in the dropdown menu.
(insert pic here)
Next Steps
You've successfully create a repo and pushed a Docker image to it. Next:
- Create an Organization to use Docker Hub with your team.
- Automatically build container images from code via Builds.
- Explore Official & Publisher Images
Docker Commands to Interact with Docker Hub
Docker itself provides access to Docker Hub services via the
docker search
,
pull
,
login
, and
push
commands.