Skip to content
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

Add runtime docker agent template container option #1031

Open
mardjuro opened this issue Nov 17, 2023 · 0 comments
Open

Add runtime docker agent template container option #1031

mardjuro opened this issue Nov 17, 2023 · 0 comments
Labels
enhancement A PR providing an enhancement to existing functionality.

Comments

@mardjuro
Copy link

What feature do you want to see added?

Container settings for Docker agent template on Jenkins cloud do not provide an option to specify which runtime should be used for the cloud container. Command line equivalent for this is using --runtime parameter when running docker container.

This seems to be one of the few options missing from the configuration. It is supported by docker-java project (HostConfig.withRuntime(String)), but not set in DockerTemplateBase.

Option to use docker command as launch method, per #468, gives a workaround which is not applicable for docker cloud within Jenkins, and requires non-trivial approach to run commands on agents.

Another workaround, which I'm currently using, is to set default runtime on a cloud machine level using configuration in /etc/docker/daemon.json.

{
 "default-runtime": "sysbox-runc",
}

Such approach has own disadvantages by using non-default runtime for all containers, even ones which prefer other runtimes. Example for this are containers / docker agent templates which use nvidia runtime.

Proposed solution
Add option for runtime selection on Container settings within docker cloud agent templates.

Upstream changes

No response

@mardjuro mardjuro added the enhancement A PR providing an enhancement to existing functionality. label Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A PR providing an enhancement to existing functionality.
Projects
None yet
Development

No branches or pull requests

1 participant