Todd A. Jacobs on Nostr: nprofile1q…x2r82 You also need root privileges to bind mount a host's /proc or /sys ...
nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqkjn5y6evs5rkcelfzqk4vgrh75u8gdx48slx04hvhhc0chw90qds9x2r82 (nprofile…2r82) You also need root privileges to bind mount a host's /proc or /sys filesystems inside a container. An example is getting USB tree output from a Linux host without LSB tools or usb-utils installed/available, e.g. #TrueNAS.
```sh
docker run --privileged -it --rm alpine:latest "apk update && apk add usbutils && lsusb -t"
```
This works for anyone in the docker group since the Docker daemon usually has root capabilities and defaults to a root tty in the target container.
```sh
docker run --privileged -it --rm alpine:latest "apk update && apk add usbutils && lsusb -t"
```
This works for anyone in the docker group since the Docker daemon usually has root capabilities and defaults to a root tty in the target container.