Skip to content

Commit 0ce669e

Browse files
author
Tim Bannister
committed
Revise “Pull an Image from a Private Registry”
- link to new-style API reference - call a manifest a manifest - use tooltips where appropriate - other general tidying
1 parent 85d3fb9 commit 0ce669e

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

content/en/docs/tasks/configure-pod-container/pull-image-private-registry.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,33 @@ weight: 100
66

77
<!-- overview -->
88

9-
This page shows how to create a Pod that uses a Secret to pull an image from a
10-
private Docker registry or repository.
9+
This page shows how to create a Pod that uses a
10+
{{< glossary_tooltip text="Secret" term_id="secret" >}} to pull an image from a
11+
private container image registry or repository.
12+
1113

1214
## {{% heading "prerequisites" %}}
1315

14-
* {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
16+
* {{< include "task-tutorial-prereqs.md" >}}
1517

16-
* To do this exercise, you need a
17-
[Docker ID](https://docs.docker.com/docker-id/) and password.
18+
* To do this exercise, you need the `docker` command line tool, and a
19+
[Docker ID](https://docs.docker.com/docker-id/) for which you know the password.
1820

1921
<!-- steps -->
2022

21-
## Log in to Docker
23+
## Log in to Docker Hub
24+
25+
On your laptop, you must authenticate with a registry in order to pull a private image.
2226

23-
On your laptop, you must authenticate with a registry in order to pull a private image:
27+
Use the `docker` tool to log in to Docker Hub. See the _log in_ section of
28+
[Docker ID accounts](https://docs.docker.com/docker-id/#log-in) for more information.
2429

2530
```shell
2631
docker login
2732
```
2833

29-
When prompted, enter your Docker username and password.
34+
When prompted, enter your Docker ID, and then the credential you want to use (access token,
35+
or the password for your Docker ID).
3036

3137
The login process creates or updates a `config.json` file that holds an authorization token.
3238

@@ -171,14 +177,14 @@ You have successfully set your Docker credentials as a Secret called `regcred` i
171177

172178
## Create a Pod that uses your Secret
173179

174-
Here is a configuration file for a Pod that needs access to your Docker credentials in `regcred`:
180+
Here is a manifest for an example Pod that needs access to your Docker credentials in `regcred`:
175181

176182
{{< codenew file="pods/private-reg-pod.yaml" >}}
177183

178-
Download the above file:
184+
Download the above file onto your computer:
179185

180186
```shell
181-
wget -O my-private-reg-pod.yaml https://k8s.io/examples/pods/private-reg-pod.yaml
187+
curl -L -O my-private-reg-pod.yaml https://k8s.io/examples/pods/private-reg-pod.yaml
182188
```
183189

184190
In file `my-private-reg-pod.yaml`, replace `<your-private-image>` with the path to an image in a private registry such as:
@@ -200,10 +206,10 @@ kubectl get pod private-reg
200206

201207
## {{% heading "whatsnext" %}}
202208

203-
* Learn more about [Secrets](/docs/concepts/configuration/secret/).
209+
* Learn more about [Secrets](/docs/concepts/configuration/secret/)
210+
* or read the API reference for {{< api-reference page="config-and-storage-resources/secret-v1" >}}
204211
* Learn more about [using a private registry](/docs/concepts/containers/images/#using-a-private-registry).
205212
* Learn more about [adding image pull secrets to a service account](/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account).
206213
* See [kubectl create secret docker-registry](/docs/reference/generated/kubectl/kubectl-commands/#-em-secret-docker-registry-em-).
207-
* See [Secret](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#secret-v1-core).
208-
* See the `imagePullSecrets` field of [PodSpec](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#podspec-v1-core).
214+
* See the `imagePullSecrets` field within the [container definitions](/docs/reference/kubernetes-api/workload-resources/pod-v1/#containers) of a Pod
209215

0 commit comments

Comments
 (0)