Docker Community Forums

Share and learn in the Docker community.

--device cannot be used, read only file system


(Rakurai) #1

If I understand the docs correctly, --device gives privileged access to the listed device. When I run a container that needs to manipulate /dev/uio0 with the line:

I get an error like:

I can get past that error if I used --privileged, but I’d like the access to be a little more restricted. I have tried to the container write access with:

but to no avail. Is there a convenient way to give the container access to the device configuration?