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 support for runArgs devcontainer property #441

Open
kujenga opened this issue Dec 26, 2024 · 2 comments
Open

Add support for runArgs devcontainer property #441

kujenga opened this issue Dec 26, 2024 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@kujenga
Copy link

kujenga commented Dec 26, 2024

https://github.com/coder/envbuilder/blob/main/docs/devcontainer-spec-support.md does not currently mention the runArgs part of the dev container specification:

An array of Docker CLI arguments that should be used when running the container. Defaults to []. For example, this allows ptrace based debuggers like C++ to work in the container:
"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ] .

Supporting this would make the envbuilder here much more flexible for various use cases where customization of the docker containers is needed.

@coder-labeler coder-labeler bot added the help wanted Extra attention is needed label Dec 26, 2024
@mafredri
Copy link
Member

Hey @kujenga. This is an interesting proposal. Could you give an example of a concrete use-case you would want to see supported via runArgs?

@kujenga
Copy link
Author

kujenga commented Jan 2, 2025

Sure! @mafredri The specific use case I ran into was to add a --shm-size flag to increase the size of /dev/shm for running a program that used lots of semaphores and exhausted the default limits. We were able to work around it but this would be nice to have to support a variety of use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants