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

[Suggestion] Command to run a program in a container #1414

Closed
Xanderplayz16 opened this issue May 26, 2024 · 2 comments
Closed

[Suggestion] Command to run a program in a container #1414

Xanderplayz16 opened this issue May 26, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Xanderplayz16
Copy link

Xanderplayz16 commented May 26, 2024

Is your feature request related to a problem? Please describe.
I am creating a script that uses Distrobox, and I can't find a good way to do this.

Describe the solution you'd like
I would like something like a command that runs an program inside a container, like:
distrobox-exec mycontainer "/bin/bash -c 'dosomething | somethingelse && morecompute >/dev/null'"

@Xanderplayz16 Xanderplayz16 added the enhancement New feature or request label May 26, 2024
@Xanderplayz16 Xanderplayz16 changed the title Command to run a program in a container [Suggestion] Command to run a program in a container May 31, 2024
@fbartels
Copy link

fbartels commented Jun 2, 2024

When using distrobox export it creates a wrapper script with the following command to directly executy a command in a distrobox:

$HOME/.local/bin/distrobox-enter  -n name-of-distrobox  --  '/usr/bin/code'  "$@"

@89luca89
Copy link
Owner

Just read the distrobox-enter docs/man page/help and you'll see there is a flag for that

@89luca89 89luca89 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants