Merge pull request #11713 from usha-mandya/hub-patch

Refresh images and update Docker Hub QSG
This commit is contained in:
Usha Mandya 2020-11-20 08:00:26 +00:00 committed by GitHub
commit 5a43052b5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 47 additions and 46 deletions

View File

@ -1218,6 +1218,10 @@ manuals:
title: Recover your Docker Hub account title: Recover your Docker Hub account
- path: /docker-hub/2fa/new-recovery-code/ - path: /docker-hub/2fa/new-recovery-code/
title: Generate a new recovery code title: Generate a new recovery code
- path: /docker-hub/orgs/
title: Teams and organizations
- path: /docker-hub/repos/
title: Repositories
- sectiontitle: Administration - sectiontitle: Administration
section: section:
- path: /docker-hub/convert-account/ - path: /docker-hub/convert-account/
@ -1236,18 +1240,10 @@ manuals:
title: Add seats title: Add seats
- path: /docker-hub/billing/remove-seats/ - path: /docker-hub/billing/remove-seats/
title: Remove seats title: Remove seats
- path: /docker-hub/orgs/
title: Teams and organizations
- path: /docker-hub/repos/
title: Repositories
- path: /docker-hub/vulnerability-scanning/ - path: /docker-hub/vulnerability-scanning/
title: Vulnerability scanning title: Vulnerability scanning
- path: /docker-hub/official_images/ - path: /docker-hub/official_images/
title: Official images title: Official images
- path: /docker-hub/webhooks/
title: Webhooks
- path: /docker-hub/slack_integration/
title: Slack integration
- sectiontitle: Automated builds - sectiontitle: Automated builds
section: section:
- path: /docker-hub/builds/ - path: /docker-hub/builds/
@ -1258,6 +1254,10 @@ manuals:
title: Advanced automated builds title: Advanced automated builds
- path: /docker-hub/builds/link-source/ - path: /docker-hub/builds/link-source/
title: Link to GitHub and BitBucket title: Link to GitHub and BitBucket
- path: /docker-hub/webhooks/
title: Webhooks
- path: /docker-hub/slack_integration/
title: Slack integration
- sectiontitle: Publisher & certified content - sectiontitle: Publisher & certified content
section: section:
- path: /docker-hub/publish/ - path: /docker-hub/publish/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 389 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 262 KiB

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 KiB

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 963 KiB

View File

@ -1,6 +1,6 @@
--- ---
description: Docker Hub Quickstart description: Docker Hub Quickstart
keywords: Docker, docker, registry, accounts, plans, Dockerfile, Docker Hub, docs, documentation, accounts, organizations, repositories, groups, teams keywords: Docker, docker, registry, accounts, plans, Dockerfile, Docker Hub, accounts, organizations, repositories, groups, teams
title: Docker Hub Quickstart title: Docker Hub Quickstart
redirect_from: redirect_from:
- /docker-hub/overview/ - /docker-hub/overview/
@ -77,9 +77,13 @@ redirect_from:
- /apidocs/overview/ - /apidocs/overview/
--- ---
[Docker Hub](https://hub.docker.com) is a service provided by Docker for [Docker Hub](https://hub.docker.com){: target="_blank" rel="noopener" class="_"} is a service provided by Docker for
finding and sharing container images with your team. It provides the following finding and sharing container images with your team. It is the worlds largest repository of container images with an array of content sources including container community developers, open source projects and independent software vendors (ISV) building and distributing their code in containers.
major features:
Users get access to free public repositories for storing and sharing images or can choose a [subscription plan](https://www.docker.com/pricing){: target="_blank" rel="noopener" class="_"} for private repositories.
Docker Hub provides the following major features:
* [Repositories](repos.md): Push and pull container images. * [Repositories](repos.md): Push and pull container images.
* [Teams & Organizations](orgs.md): Manage access to private * [Teams & Organizations](orgs.md): Manage access to private
repositories of container images. repositories of container images.
@ -92,28 +96,28 @@ GitHub and Bitbucket and push them to Docker Hub.
* [Webhooks](webhooks.md): Trigger actions after a successful push * [Webhooks](webhooks.md): Trigger actions after a successful push
to a repository to integrate Docker Hub with other services. to a repository to integrate Docker Hub with other services.
The following section contains step-by-step instructions on how to easily get started with Docker Hub.
### Step 1: Sign up for a Docker account
### Step 1: Sign up for Docker Hub Let's start by creating a [Docker ID](https://hub.docker.com/signup){: target="_blank" rel="noopener" class="_"}.
Start by [creating an account](https://hub.docker.com/signup). A Docker ID grants you access to Docker Hub repositories and allows you to explore images that are available from the community and verified publishers. You'll also need a Docker ID to share images on Docker Hub.
### Step 2: Create your first repository ### Step 2: Create your first repository
To create a repo: To create a repository:
1. Sign in to [Docker Hub](https://hub.docker.com). 1. Sign in to [Docker Hub](https://hub.docker.com){: target="_blank" rel="noopener" class="_"}.
2. Click **Create a Repository** on the Docker Hub welcome page:
2. Click on **Create a Repository** on the Docker Hub welcome page: 3. Name it **<your-username>/my-private-repo**.
4. Set the visibility to **Private**.
![Welcome](images/index-welcome.png)
3. Name it **<your-username>/my-first-repo** as shown below. Select
**Private**:
![Create Repository](images/index-create-repo.png) ![Create Repository](images/index-create-repo.png)
You've created your first repo. You should see: 5. Click **Create**.
You've created your first repository. You should see:
![Repository Created](images/index-repo-created.png) ![Repository Created](images/index-repo-created.png)
@ -122,16 +126,14 @@ To create a repo:
We'll need to download Docker Desktop to build and push a container image to We'll need to download Docker Desktop to build and push a container image to
Docker Hub. Docker Hub.
1. Download and install [Docker Desktop](https://docker.com/get-started). If on 1. Download and install [Docker Desktop](../desktop/#download-and-install). If on Linux, download [Docker Engine](../engine/install/).
Linux, download [Docker Engine - Community](https://hub.docker.com/search?type=edition&offering=community).
2. Open the terminal and sign in to Docker Hub on your computer by running 2. Sign into the Docker Desktop application using the Docker ID you created in Step 1.
`docker login`.
### Step 4: Build and push a container image to Docker Hub from your computer ### Step 4: Build and push a container image to Docker Hub from your computer
1. Start by creating a [Dockerfile](https://docs.docker.com/engine/reference/builder/) 1. Start by creating a [Dockerfile](../engine/reference/builder/) to specify your application as shown below:
to specify your application as shown below:
```shell ```shell
cat > Dockerfile <<EOF cat > Dockerfile <<EOF
FROM busybox FROM busybox
@ -139,29 +141,28 @@ CMD echo "Hello world! This is my first Docker image."
EOF EOF
``` ```
2. Run `docker build -t <your_username>/my-first-repo .` to build your Docker 2. Run `docker build -t <your_username>/my-private-repo .` to build your Docker
image. image.
3. Run `docker run <your_username>/my-first-repo` to test your 3. Run `docker run <your_username>/my-private-repo` to test your
Docker image locally. Docker image locally.
4. Run `docker push <your_username>/my-first-repo` to push your Docker image to 4. Run `docker push <your_username>/my-private-repo` to push your Docker image to Docker Hub. You should see output similar to:
Docker Hub.
You should see output similar to: ![Terminal](images/index-terminal.png)
![Terminal](images/index-terminal-2019.png) > **Having trouble pushing?** Remember, you must be signed into Docker Hub through Docker Desktop or the command line, and you must also name your images correctly, as per the above steps.
And in Docker Hub, your repository should have a new `latest` tag available 5. Your repository in Docker Hub should now display a new `latest` tag under **Tags**:
under **Tags**:
![Tag Created](images/index-tag.png) ![Tag Created](images/index-tag.png)
Congratulations! You've successfully: Congratulations! You've successfully:
- Signed up for Docker Hub
- Signed up for a Docker account
- Created your first repository - Created your first repository
- Built a Docker container image on your computer - Built a Docker container image on your computer
- Pushed it to Docker Hub - Pushed it succesfully to Docker Hub
### Next steps ### Next steps