Give docker access to serial port

Hello everyone,

Is it possible to give Docker access to a serial port? I am running Docker on a Raspberry Pi, that is containerizing a python application. My problem is that Docker has no access to the serial port. Has anyone else encountered this problem?

Thanks in advance to all of those who reply.

1 Like

A docker container is an isolated system that by default has no access to the host hardware. But you can change this. You find more information in the docs for docker run under Runtime privilege and Linux capabilities. Notice that it’s called ‘Linux’, don’t forget this if later you want to move to another system.