gpt4 book ai didi

docker 公证人 : tls: oversized record received with length 20527

转载 作者:行者123 更新时间:2023-12-04 21:08:56 24 4
gpt4 key购买 nike

当我尝试在私有(private)注册表中推送和签名图像时收到此错误。重现步骤:

  • 部署注册表:
    $ docker run -d -p 5000:5000 --restart=always --name registry registry:2
  • 标记图像:
    $ docker tag hello-world localhost:5000/hello-world:latest
  • 启用内容信任:
    $ export DOCKER_CONTENT_TRUST=1
  • 推送注册表:
    $ docker push localhost:5000/hello-world:latest
    => The push refers to a repository [localhost:5000/hello-world]
    a02596fdd012: Pushed
    latest: digest: sha256:a18ed77532f6d6781500db650194e0f9396ba5f05f8b50d4046b294ae5f83aa4 size: 524
    Signing and pushing trust metadata
    tls: oversized record received with length 20527
  • 最佳答案

    您的注册表不接受 https 连接,因为它位于 http 上。忘记DOCKER_CONTENT_TRUST并使用 --insecure-registry 将您的注册表添加为不安全的注册表docker daemon 配置中的 daemon 选项,然后重新启动 docker

    关于 docker 公证人 : tls: oversized record received with length 20527,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39146112/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com