From b378487986104af6ae0de69e434ffcad8a13a1be Mon Sep 17 00:00:00 2001 From: sarahsanders-docker Date: Mon, 19 May 2025 13:48:49 -0400 Subject: [PATCH 1/5] add troubleshooting callout to get started guide --- content/get-started/workshop/04_sharing_app.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/get-started/workshop/04_sharing_app.md b/content/get-started/workshop/04_sharing_app.md index 5ba3b09f065f..e6e4f8abc095 100644 --- a/content/get-started/workshop/04_sharing_app.md +++ b/content/get-started/workshop/04_sharing_app.md @@ -52,6 +52,10 @@ In the following image, you can see an example Docker command from Docker Hub. T To fix this, you need to tag your existing image you've built to give it another name. + > [!NOTE] + > + > If you encounter the following error: `denied: requested access to the resource is denied`, you can retry with `$ docker login -u "myusername" -p "mypassword" docker.io`. + 2. Sign in to Docker Hub using the command `docker login -u YOUR-USER-NAME`. 3. Use the `docker tag` command to give the `getting-started` image a new name. Replace `YOUR-USER-NAME` with your Docker ID. From 7771023a71dd578cc44b02fcb87224506e8c38ac Mon Sep 17 00:00:00 2001 From: sarahsanders-docker Date: Mon, 19 May 2025 15:10:25 -0400 Subject: [PATCH 2/5] reorder steps --- content/get-started/workshop/04_sharing_app.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/content/get-started/workshop/04_sharing_app.md b/content/get-started/workshop/04_sharing_app.md index e6e4f8abc095..003e4cce50cc 100644 --- a/content/get-started/workshop/04_sharing_app.md +++ b/content/get-started/workshop/04_sharing_app.md @@ -38,7 +38,8 @@ In the following image, you can see an example Docker command from Docker Hub. T ## Push the image -1. In the command line, run the `docker push` command that you see on Docker +1. Sign in to Docker Hub using the command: `docker login YOUR-USER-NAME YOUR-PASSWORD`. +2. In the command line, run the `docker push` command that you see on Docker Hub. Note that your command will have your Docker ID, not "docker". For example, `docker push YOUR-USER-NAME/getting-started`. ```console @@ -52,12 +53,6 @@ In the following image, you can see an example Docker command from Docker Hub. T To fix this, you need to tag your existing image you've built to give it another name. - > [!NOTE] - > - > If you encounter the following error: `denied: requested access to the resource is denied`, you can retry with `$ docker login -u "myusername" -p "mypassword" docker.io`. - -2. Sign in to Docker Hub using the command `docker login -u YOUR-USER-NAME`. - 3. Use the `docker tag` command to give the `getting-started` image a new name. Replace `YOUR-USER-NAME` with your Docker ID. ```console From 42634347978117bfe046cdfabae1836df8f96056 Mon Sep 17 00:00:00 2001 From: Sarah Sanders Date: Mon, 19 May 2025 15:49:21 -0400 Subject: [PATCH 3/5] Update content/get-started/workshop/04_sharing_app.md Co-authored-by: Sebastiaan van Stijn --- content/get-started/workshop/04_sharing_app.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/get-started/workshop/04_sharing_app.md b/content/get-started/workshop/04_sharing_app.md index 003e4cce50cc..b280d7281ed5 100644 --- a/content/get-started/workshop/04_sharing_app.md +++ b/content/get-started/workshop/04_sharing_app.md @@ -38,7 +38,7 @@ In the following image, you can see an example Docker command from Docker Hub. T ## Push the image -1. Sign in to Docker Hub using the command: `docker login YOUR-USER-NAME YOUR-PASSWORD`. +1. Sign in to Docker Hub using the command: `docker login`. 2. In the command line, run the `docker push` command that you see on Docker Hub. Note that your command will have your Docker ID, not "docker". For example, `docker push YOUR-USER-NAME/getting-started`. From 10aac04074a9f9f4aa157a31eafc616ab31f78c5 Mon Sep 17 00:00:00 2001 From: sarahsanders-docker Date: Tue, 20 May 2025 11:33:08 -0400 Subject: [PATCH 4/5] fix step 1, make it clearer --- .../get-started/workshop/04_sharing_app.md | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/content/get-started/workshop/04_sharing_app.md b/content/get-started/workshop/04_sharing_app.md index b280d7281ed5..182c6b8e8d22 100644 --- a/content/get-started/workshop/04_sharing_app.md +++ b/content/get-started/workshop/04_sharing_app.md @@ -37,10 +37,15 @@ In the following image, you can see an example Docker command from Docker Hub. T ## Push the image +Let's try to push the image to Docker Hub. -1. Sign in to Docker Hub using the command: `docker login`. -2. In the command line, run the `docker push` command that you see on Docker - Hub. Note that your command will have your Docker ID, not "docker". For example, `docker push YOUR-USER-NAME/getting-started`. +1. In the command line, run the following commmand: + + ```console + docker push docker/getting-started + ``` + + You'll see an error like this: ```console $ docker push docker/getting-started @@ -48,11 +53,17 @@ In the following image, you can see an example Docker command from Docker Hub. T An image does not exist locally with the tag: docker/getting-started ``` - Why did it fail? The push command was looking for an image named `docker/getting-started`, but - didn't find one. If you run `docker image ls`, you won't see one either. + This failure is expected because the image isn't tagged correctly yet. + Docker is looking for an image name `docker/getting started`, but your + local image is still named `getting-started`. - To fix this, you need to tag your existing image you've built to give it another name. + You can confirm this by running: + + ```console + docker image ls + ``` +2. To fix this, first sign in to Docker Hub using your Docker ID: `docker login YOUR-USER-NAME`. 3. Use the `docker tag` command to give the `getting-started` image a new name. Replace `YOUR-USER-NAME` with your Docker ID. ```console From 9507e6f1a35b394763abd69e2d6a5e819a43e385 Mon Sep 17 00:00:00 2001 From: sarahsanders-docker Date: Tue, 20 May 2025 11:39:44 -0400 Subject: [PATCH 5/5] whitespace error: --- content/get-started/workshop/04_sharing_app.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/get-started/workshop/04_sharing_app.md b/content/get-started/workshop/04_sharing_app.md index 182c6b8e8d22..5537dff5c9ae 100644 --- a/content/get-started/workshop/04_sharing_app.md +++ b/content/get-started/workshop/04_sharing_app.md @@ -37,6 +37,7 @@ In the following image, you can see an example Docker command from Docker Hub. T ## Push the image + Let's try to push the image to Docker Hub. 1. In the command line, run the following commmand: