Fix some book issues
This commit is contained in:
parent
6e135a40de
commit
3d8dd24b78
30 changed files with 109 additions and 110 deletions
|
|
@ -34,7 +34,7 @@ lang="en-US">`repository:hello-world:pull`</span>). Ce qui nous donne :
|
|||
|
||||
<div lang="en-US">
|
||||
```bash
|
||||
42sh$ curl "https://auth.docker.io/token?service=registry.docker.io&"\
|
||||
42sh$ curl "https://auth.docker.io/token?service=registry.docker.io&" \
|
||||
"scope=repository:library/hello-world:pull" | jq .
|
||||
```
|
||||
```json
|
||||
|
|
@ -98,7 +98,8 @@ système d'exploitation :
|
|||
curl -s \
|
||||
-H "Authorization: Bearer ${TOKEN}" \
|
||||
-H "Accept: ${MEDIATYPE}" \
|
||||
"https://registry-1.docker.io/v2/library/hello-world/manifests/${MNFST_DGST}"
|
||||
"https://registry-1.docker.io/v2/library/hello-world/manifests/
|
||||
${MNFST_DGST}"
|
||||
```
|
||||
</div>
|
||||
|
||||
|
|
@ -119,7 +120,7 @@ Pour récupérer la configuration de l'image :
|
|||
```bash
|
||||
curl -s --location \
|
||||
-H "Authorization: Bearer ${TOKEN}" \
|
||||
"https://registry-1.docker.io/v2/library/hello-world/blobs/${CONFIG_DIGEST}"
|
||||
"https://registry-1.docker.io/v2/library/hello-world/blobs/${CNF_DIGEST}"
|
||||
```
|
||||
</div>
|
||||
|
||||
|
|
@ -129,7 +130,7 @@ Enfin, armé du `digest` de notre couche, il ne nous reste plus qu'à la demande
|
|||
<div lang="en-US">
|
||||
```bash
|
||||
wget --header "Authorization: Bearer ${TOKEN}" \
|
||||
"https://registry-1.docker.io/v2/library/hello-world/blobs/${LAYER_DIGEST}"
|
||||
"https://registry-1.docker.io/v2/library/hello-world/blobs/${LAYER_DGST}"
|
||||
```
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue