Giter Club home page Giter Club logo

Comments (3)

brandond avatar brandond commented on May 29, 2024 1

Does it work fine without the extra [host] in there?

No, it does not work at all without the [host] in there. You could also add a [host."example.com"] entry but I don't need to configure any mirrors, I just want to set the ca for this registry namespace.

That shouldn't be a valid configuration

Nowhere in the docs does it indicate that you MUST have a host tree. If you just want to configure TLS for the registry namespace without specifying any mirrors, having root fields set without a host tree (ie no host blocks) is a perfectly valid use case.

from containerd.

brandond avatar brandond commented on May 29, 2024

The change from #9131 appears to have refactored some of this, but I'm not sure if it actually resolved the issue or not.

It does still affect the 1.7 branch:
https://github.com/containerd/containerd/blob/v1.7.14/remotes/docker/config/hosts.go#L529-L534

from containerd.

dmcgowan avatar dmcgowan commented on May 29, 2024
root@systemd-node-1:/# cat /var/lib/rancher/k3s/agent/etc/containerd/certs.d/172-17-0-7.sslip.io/hosts.toml
ca = ["/usr/local/share/ca-certificates/registry.crt"]
[host]

Does it work fine without the extra [host] in there? That shouldn't be a valid configuration, although it should be handled more gracefully.

from containerd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.