Skip to content

Add support for specifying sysctls in run options#480

Open
ciarand wants to merge 2 commits into
GoogleContainerTools:mainfrom
aalyria:ciaran--add-sysctls-to-run-opts
Open

Add support for specifying sysctls in run options#480
ciarand wants to merge 2 commits into
GoogleContainerTools:mainfrom
aalyria:ciaran--add-sysctls-to-run-opts

Conversation

@ciarand

@ciarand ciarand commented Dec 9, 2024

Copy link
Copy Markdown

This adds a new "Sysctls" field to the ContainerRunOptions struct. This matches the go-dockerclient definition and just gets passed through to the docker HostConfig struct as-is.

Hopefully this is a relatively uncontroversial change.

This adds a new "Sysctls" field to the ContainerRunOptions struct. This
matches the go-dockerclient definition and just gets passed through to
the docker HostConfig struct as-is.
thomasdesr added a commit to anyscale/container-structure-test that referenced this pull request Jun 29, 2026
The bazel/test rule smoke-test runs against the pinned prebuilt release
(repositories.bzl _VERSION=v1.22.0), which predates the sysctls field
added in GoogleContainerTools#480, so it could not parse the fixture and //:test failed on
every commit since e9291d6. The fixture validates rule wiring, not new
binary features, so it must only use fields the pinned release supports.
The sysctls feature itself (pkg/types + docker driver) is unaffected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant