---
description: Learn how to get started using Docker Hub
keywords: Docker Hub, push image, pull image, repositories
title: Docker Hub quickstart
linkTitle: Quickstart
weight: 10
---
Docker Hub provides a vast library of pre-built images and resources,
accelerating development workflows and reducing setup time. You can build upon
pre-built images from Docker Hub and then use repositories to share and
distribute your own images with your team or millions of other developers.
This guide shows you how to find and run a pre-built image. It then walks you
through creating a custom image and sharing it through Docker Hub.
## Prerequisites
- [Download and install Docker](../../get-started/get-docker.md)
- [Create a Docker account](https://app.docker.com/signup)
## Step 1: Find an image in Docker Hub's library
You can search for content in Docker Hub itself, in the Docker Desktop
Dashboard, or by using the CLI.
To search or browse for content on Docker Hub:
{{< tabs >}}
{{< tab name="Docker Hub" >}}
1. Navigate to the [Docker Hub Explore page](https://hub.docker.com/explore).
On the **Explore** page, you can browse by catalog or category, or use the search
to quickly find content.
2. Under **Categories**, select **Web servers**.
After the results are displayed, you can further filter the results using the
filters on the left side of the page.
3. In the filters, select **Docker Official Image**.
Filtering by Trusted Content ensures that you see only high-quality, secure
images curated by Docker and verified publishing partners.
4. In the results, select the **nginx** image.
Selecting the image opens the image's page where you can learn more about how
to use the image. On the page, you'll also find the `docker pull` command to
pull the image.
{{< /tab >}}
{{< tab name="Docker Desktop" >}}
1. Open the Docker Desktop Dashboard.
2. Select the **Docker Hub** view.
In the **Docker Hub** view, you can browse by catalog or category, or use the search
to quickly find content.
3. Leave the search box empty and then select **Search**.
The search results are shown with additional filters now next to the search box.
4. Select the search filter icon, and then select **Docker Official Image** and **Web Servers**.
5. In the results, select the **nginx** image.
{{< /tab >}}
{{< tab name="CLI" >}}
1. Open a terminal window.
> [!TIP]
>
> The Docker Desktop Dashboard contains a built-in terminal. At the bottom of
> the Dashboard, select **>_ Terminal** to open it.
2. In the terminal, run the following command.
```console
$ docker search --filter is-official=true nginx
```
Unlike the Docker Hub and Docker Desktop interfaces, you can't browse by
category using the `docker search` command. For more details about the
command, see [docker search](/reference/cli/docker/search/).
{{< /tab >}}
{{< /tabs >}}
Now that you've found an image, it's time to pull and run it on your device.
## Step 2: Pull and run an image from Docker Hub
You can run images from Docker Hub using the CLI or Docker Desktop Dashboard.
{{< tabs >}}
{{< tab name="Docker Desktop" >}}
1. In the Docker Desktop Dashboard, select the **nginx** image in the **Docker
Hub** view. For more details, see [Step 1: Find an image in Docker Hub's
library](#step-1-find-an-image-in-docker-hubs-library).
2. On the **nginx** screen, select **Run**.
If the image doesn't exist on your device, it is automatically pulled from
Docker Hub. Pulling the image may take a few seconds or minutes depending on
your connection. After the image has been pulled, a window appears in Docker
Desktop and you can specify run options.
3. In the **Host port** option, specify `8080`.
4. Select **Run**.
The container logs appear after the container starts.
5. Select the **8080:80** link to open the server, or visit
[https://localhost:8080](https://localhost:8080) in your web browser.
6. In the Docker Desktop Dashboard, select the **Stop** button to stop the