Skip to content

Commit f9bcf4a

Browse files
committed
add section link
Signed-off-by: Mike Brown <[email protected]>
1 parent d4be6aa commit f9bcf4a

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

docs/cri/config.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,16 @@ version = 2
260260
#
261261
# *** registry.configs and registry.mirrors that were a part of containerd 1.4
262262
# are now DEPRECATED and will only be used if the config_path is not specified.
263-
config_path = "/etc/containerd/certs.d"
263+
config_path = ""
264264
```
265-
Here is a simple example for a default registry hosts configuration when specifying config_path:
265+
266+
## Registry Configuration
267+
268+
Here is a simple example for a default registry hosts configuration. Set
269+
`config_path = "/etc/containerd/certs.d"` in your config.toml for containerd.
270+
Make a directory tree at the config path that includes `docker.io` as a directory
271+
representing the host namespace to be configured. Then add a `hosts.toml` file
272+
in the `docker.io` to configure the host namespace. It should look like this:
266273
```
267274
$ tree /etc/containerd/certs.d
268275
/etc/containerd/certs.d

docs/cri/registry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This document describes the method to configure the image registry for `containerd` for use with the `cri` plugin.
44

55
*** registry.mirrors and registry.configs as described in this document
6-
have been DEPRECATED. As described in [the cri config](./config.md) you
6+
have been DEPRECATED. As described in [the cri config](./config.md#registry-configuration) you
77
should now use the form
88
```toml
99
[plugins."io.containerd.grpc.v1.cri".registry]

0 commit comments

Comments
 (0)