OctoPrint + Docker: USB devices hot plugging
One of the drawbacks of using OctoPrint in the default Docker Container is that the printer must be connected and operational for the container to start. This issue can affect the operation of useful plugins like PSU Control.
Fortunately there is a way to enable serial device hot plugging in a Docker container. It is practical if you are running few printers/containers.
The following instructions were written for 3D printers but the logic could be applied to any serial device and any type of container (HomeAssistant, Zigbee2MQTT, etc...).