You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -453,6 +453,30 @@ When pulling an image from a registry, the container runtime will try the endpoi
453
453
454
454
For [host-container](#host-containers-settings) and [bootstrap-container](#bootstrap-containers-settings) images from Amazon ECR private repositories, registry mirrors are currently unsupported.
455
455
456
+
The following setting is optional and allows you to configure image registry credentials.
457
+
* `settings.container-registry.credentials`: An array of container images registry credential settings. Each element specifies the registry and the credential information for said registry.
458
+
The credential fields map to [containerd's registry credential fields](https://github.com/containerd/containerd/blob/v1.6.0/docs/cri/registry.md#configure-registry-credentials), which in turn map to the fields in `.docker/config.json`.
459
+
It is recommended to programmatically set these settings via `apiclient` through the Bottlerocket control container and/or custom host-containers.
460
+
* An example `apiclient` call to set registry credentials for `gcr.io` and `docker.io` looks like this:
461
+
```bash
462
+
apiclient set --json '{
463
+
"container-registry": {
464
+
"credentials": [
465
+
{
466
+
"registry": "gcr.io",
467
+
"username": "example_username",
468
+
"password": "example_password"
469
+
},
470
+
{
471
+
"registry": "docker.io",
472
+
"auth": "example_base64_encoded_auth_string"
473
+
}
474
+
]
475
+
}
476
+
}'
477
+
```
478
+
In addition to the container runtime daemons, these credential settings will also apply to [host-container](#host-containers-settings) and [bootstrap-container](#bootstrap-containers-settings) image pulls as well.
479
+
456
480
#### Updates settings
457
481
458
482
*`settings.updates.metadata-base-url`: The common portion of all URIs used to download update metadata.
0 commit comments