You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[V1] containerd makes binaries bigger due to importing std plugin #11202
github.com/containerd/containerd imports github.com/containerd/containerd/plugin which imports plugin on amd64:
As shown in DataDog/datadog-agent#32538, just removing the import on amd64 reduces the size of one of our binaries from 218MB to 150MB (-31%).
I would like to suggest adding a specific build tag to remove this import. I know using the static_build tag would do the same, but since it is used by many other dependencies I'm worried it would have unexpected consequences...
Describe the solution you'd like
Have a way to use containerd v1 types and functions without having to import the plugin package, and without changing behavior of other dependencies.
A build tag no_dynamic_plugins was added to releases 1.7 and 2.0, using it removes the import of the plugin package, making binaries importing containerd (and containerd itself) significantly smaller.
Activity
Merge pull request #11203 from pgimalac/pgimalac/containerd-no-plugin
pgimalac commentedon Jan 6, 2025
A build tag
no_dynamic_pluginswas added to releases 1.7 and 2.0, using it removes the import of thepluginpackage, making binaries importingcontainerd(andcontainerditself) significantly smaller.