Skip to content

sdk_container/containerd: Add registry config_path #3045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nikParasyr
Copy link

@nikParasyr nikParasyr commented Jun 24, 2025

sdk_container/containerd: Add registry config_path

Update containerd config to include the crio registry plugin that defines the config_path. This allows users to add host specific configuration for containerd without having to overwrite the default containerd config.

How to use

This config allows users to easily drop in hosts file under etc/containerd/certs.d as explained here, in order to configure registry specific configs (mirrors, header, skip_tls, ... )

Testing done

have to use the service override mechanism to change the default config file of containerd. Copied the containerd config of the MR into /etc/containerd/config.toml. Restarted containerd and after that:

  • if the /etc/containerd/certs.d directory does not exist or is empty, containerd does NOT have any issues

  • I was then able to add hosts files based on the examples above and create mirrors

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)

  • Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.

Resolves: flatcar/Flatcar#583

Update containerd config to include the crio registry
plugin that defines the config_path. This allows users
to add host specific configuration for containerd without
having to overwrite the default containerd config.
@nikParasyr
Copy link
Author

nikParasyr commented Jun 24, 2025

I have 2 remarks/questions about this:

  • is this the right location of the files? They have not been touched for 2y and similar with the changelog, so im not sure this is the right place, but going over the various repos i couldnt find a different place
  • in the alpha releases you include containerd version 2 which support config version 3. The configuration of this plugin is different in version 3 and version 2 as shown here. In the files i edited i saw version 2 so i added the config of that version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Testing / in Review
Development

Successfully merging this pull request may close these issues.

[RFE] Include certs.d registry plugin in containerd config.toml
2 participants