Is there a way to add devices to a container without having to build it again? In the docker-compse.yml we add devices like /dev/ttyS0 so we can access it from the container. I would like to do this without having to rebuild my container. I’m wondering if this is even possible. I tried editing hostconfig.json but when I restart the container all the changes get reverted to the original copy of the file.
I couldn’t find a way to do this using the supervisor api too.