bubblewrap icon indicating copy to clipboard operation
bubblewrap copied to clipboard

Example in REAMDE does not work

Open Chris00 opened this issue 6 years ago • 3 comments

Running the example in the README yields:

$ bwrap --ro-bind /usr /usr --symlink usr/lib64 /lib64 --proc /proc --dev /dev --unshare-pid bash
bwrap: execvp bash: No such file or directory

Chris00 avatar Nov 01 '18 21:11 Chris00

Here is a version that works:

bwrap --ro-bind /bin /bin --ro-bind /lib /lib --ro-bind /lib64 /lib64 --unshare-pid bash

Chris00 avatar Nov 01 '18 21:11 Chris00

Since I guess the proper arguments may slightly depend on the system (Debian testing in my case), some additional explanation would be welcome — also because the output in case of failure is not self explanatory...

Chris00 avatar Nov 01 '18 22:11 Chris00

Agreed. :+1: I think the simplest and most portable example I have seen comes from this ArchLinux wiki:

$ bwrap --dev-bind / / bash

Even if simplistic, having a working "hello world" example inspires confidence in new users. :baby: In my experience, I certainly remained skeptical about bwrap when the README example didn't Just Work. :thinking: It was only later, when I found the basic example shown above, that I gained confidence in bwrap.

sunaku avatar Dec 21 '19 17:12 sunaku