0

对于 docker pull 我们可以执行以下操作,以便它可以通过运行从本地注册表中拉取docker pull localhost:32000/hello:latest

{
  "insecure-registries" : [
      "localhost:32000"
  ]
}

是否可以进行类似的配置,例如在运行 cmd 时:

microk8s ctr image pull localhost:32000/hello:latest

它没有遇到server gave HTTP response to HTTPS client

4

1 回答 1

0

使用ctr标志--plain-text来使用不安全的协议。源代码

microk8s ctr image pull --plain-text localhost:32000/hello:latest
于 2021-11-08T23:37:39.013 回答