Skip to content

Commit 0def98e

Browse files
authored
Merge pull request #5794 from mikebrow/clarify-host-docs
adding a little more clarity
2 parents 3a503ac + b5fc784 commit 0def98e

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

docs/hosts.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11

22
# Registry Configuration - Introduction
33

4-
Configuring registries will be done by specifying (optionally) a `hosts.toml` file for
5-
each desired registry host in a configuration directory. **Note**: Updates under this directory
6-
do not require restarting the containerd daemon.
4+
New and additional registry hosts config support has been implemented in containerd v1.5 for the `ctr`
5+
client (the containerd tool for admins/developers), containerd image service clients, and CRI clients
6+
such as `kubectl` and `crictl`.
7+
8+
Configuring registries, for these clients, will be done by specifying (optionally) a `hosts.toml` file for
9+
each desired registry host in a configuration directory. **Note**: Updates under this directory do not
10+
require restarting the containerd daemon.
711

812
## Registry API Support
913

@@ -17,9 +21,10 @@ Currently supported OCI Distribution version: **[v1.0.0](https://github.com/open
1721

1822
### Using Host Namespace Configs with CTR
1923

20-
When pulling via `ctr` use the `--hosts-dir` option:
24+
When pulling a container image via `ctr` using the `--hosts-dir` option tells `ctr`
25+
to find and use the host configuration files located in the specified path:
2126
```
22-
ctr images pull --hosts-dir "/etc/containerd/certs.d"
27+
ctr images pull --hosts-dir "/etc/containerd/certs.d" myregistry.io:5000/image_name:tag
2328
```
2429

2530
### CRI

0 commit comments

Comments
 (0)