Docker Basics

Essential Docker system commands and registry information

What are Docker Registries?

A Docker registry is a storage and distribution system for named Docker images. It allows you to store Docker images in a central location and share them with others.

Public Registries

Public registries like Docker Hub allow anyone to pull images, making it easy to share and distribute containerized applications.

Private Registries

Private registries restrict access to authorized users only, providing security for proprietary or sensitive container images.

Docker Hub

The World's Largest Container Registry

Docker Hub is Docker's official cloud-based registry service for finding and sharing container images.

Discover Images

Find official and community images for popular software like Nginx, Redis, MySQL, and more.

Push & Pull

Upload your custom images and download images created by others with simple commands.

Collaborate

Share images with your team, set up automated builds, and manage access controls.

Docker Hub Tiers

Feature Free Pro Team Business
Private Repositories 1 Unlimited Unlimited Unlimited
Image Pulls Unlimited Unlimited Unlimited Unlimited
Team Management
Vulnerability Scanning

Docker Registry Commands

Essential Commands for Working with Registries

Login to Docker Hub

docker login

Authenticate with Docker Hub to push and pull private images.

Pull an Image from a Registry

docker pull [image-name]:[tag]

Download an image from a registry to your local machine.

Example: docker pull nginx:latest

Push an Image to a Registry

docker push [username]/[image-name]:[tag]

Upload your local image to a registry to share with others.

Example: docker push myusername/myapp:v1.0

Tag an Image for a Registry

docker tag [source-image] [username]/[image-name]:[tag]

Create a tag for an image that points to a specific registry.

Logout from a Registry

docker logout

Remove your credentials from the local Docker client.

Search for Images in Docker Hub

docker search [search-term]

Find images in Docker Hub that match your search criteria.

Example: docker search postgres