Docker Community Forums

Share and learn in the Docker community.

How to access PCI device from a Docker container

My host machine has the PCI driver installed for a device. I want to be able to access this same device from within my Docker container (running Ubuntu 14). Is this possible with Docker containers, and do I have to install the driver also in the container if so?

I would assume that since the container shares the same linux kernel as the host, that the container should be able to “see” the driver and hence talk to the device.

Di you manage to get this to work ?

see “–device” in

you will need to make the drivers available inside the container as well - make sure to build them into your image.

This feature is only available for plain docker (docker run / docker-compose), and is still not available for swarm services (see: