7

I'm trying to create a rough equivalent of Docker's --privileged in a systemd container, but I've got no idea how to allow the container to access all of the devices available on the host (without manually enumerating them).

I came across Access usb device from systemd-nspawn container and a nice --privileged description at https://github.com/rkt/rkt/issues/2962#issuecomment-235444606 , but I don't know how to put the bits together.

I also tried the naive --bind=/dev but this way there was no standard output and the container never started.

Any hints how to handle this?

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.