Closed kingces95 closed 2 years ago
Needed to add
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined",
"--privileged",
"--init"
],
I'm gonna suggest we offer a slimmed down version of the universal
template.
I expect
to work in a codespace launched for this repo using a devcontainer with image
just like it works on this branch which uses default universal codespace image.
Actually, I get
Using
strace
on the failing command yields:When I try to login as root and run without sudo I get the same error. When I run again under
strace
I get a different log that I captured here. That second log doesn't contain anything I can make sense of. It seems to be looking for a resource string that it cannot find. Maybe that's why there's no specific error message?The ability to mount enables use of
chroot
in codespaces.Issue is somewhat related to Use suid so the container does not need to be started as root or have sudo configured · Issue #488 · microsoft/vscode-dev-containers (github.com). That issue seems to indicate sudo may not be properly configured depending on how the container is launched. If that were the only issue here then running as root would have worked. CC @felipers