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

shell.Run - Use bwrap #1017

Open
moshloop opened this issue Sep 5, 2024 · 0 comments
Open

shell.Run - Use bwrap #1017

moshloop opened this issue Sep 5, 2024 · 0 comments
Milestone

Comments

@moshloop
Copy link
Member

moshloop commented Sep 5, 2024

  • Only if the container is privileged

bwrap --ro-bind /opt /opt --ro-bind /usr /usr --dir /tmp --dir /var --symlink ../tmp var/tmp --proc /proc --dev /dev --ro-bind /etc/resolv.conf /etc/resolv.conf --symlink usr/lib /lib --symlink usr/lib64 /lib64 --symlink usr/bin /bin --symlink usr/sbin /sbin --chdir / --die-with-parent --dir /run/user/$(id -u) --setenv XDG_RUNTIME_DIR "/run/user/id -u" --setenv PS1 "bwrap-demo$ " /bin/bash

  • Need to mount or create new dirs so that pwsh starts, currently fails with No such file or directory
@moshloop moshloop added this to the v1.1.0 milestone Sep 26, 2024
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

No branches or pull requests

1 participant