diff --git a/roles/container-engine/containerd/templates/config.toml.j2 b/roles/container-engine/containerd/templates/config.toml.j2 index 63fd27754..e47069ecb 100644 --- a/roles/container-engine/containerd/templates/config.toml.j2 +++ b/roles/container-engine/containerd/templates/config.toml.j2 @@ -62,7 +62,7 @@ oom_score = {{ containerd_oom_score }} {% endfor %} {% endif %} {% for addr in containerd_insecure_registries.values() | flatten | unique %} - [plugins."io.containerd.grpc.v1.cri".registry.configs."{{ addr }}".tls] + [plugins."io.containerd.grpc.v1.cri".registry.configs."{{ addr | urlsplit('netloc') }}".tls] insecure_skip_verify = true {% endfor %} {% endif %}