diff --git a/docs/cri/config.md b/docs/cri/config.md index 9d2057fb6..908a913e7 100644 --- a/docs/cri/config.md +++ b/docs/cri/config.md @@ -260,9 +260,16 @@ version = 2 # # *** registry.configs and registry.mirrors that were a part of containerd 1.4 # are now DEPRECATED and will only be used if the config_path is not specified. - config_path = "/etc/containerd/certs.d" + config_path = "" ``` -Here is a simple example for a default registry hosts configuration when specifying config_path: + +## Registry Configuration + +Here is a simple example for a default registry hosts configuration. Set +`config_path = "/etc/containerd/certs.d"` in your config.toml for containerd. +Make a directory tree at the config path that includes `docker.io` as a directory +representing the host namespace to be configured. Then add a `hosts.toml` file +in the `docker.io` to configure the host namespace. It should look like this: ``` $ tree /etc/containerd/certs.d /etc/containerd/certs.d diff --git a/docs/cri/registry.md b/docs/cri/registry.md index 2064e9907..8cff40999 100644 --- a/docs/cri/registry.md +++ b/docs/cri/registry.md @@ -3,7 +3,7 @@ This document describes the method to configure the image registry for `containerd` for use with the `cri` plugin. *** registry.mirrors and registry.configs as described in this document -have been DEPRECATED. As described in [the cri config](./config.md) you +have been DEPRECATED. As described in [the cri config](./config.md#registry-configuration) you should now use the form ```toml [plugins."io.containerd.grpc.v1.cri".registry]