Well, like I said, COM ports and COM3 is meaningless on Linux. /dev/ttyUSB0 is what you would use.
In the container or on the host?
That doesn’t do anything for you. The device is represented as a file, but you can’t just copy that file around.
You need:
- to have a user with UID 999 and GID 998 on your host
- that user must be a member of the dialout group
- try using --device=/dev/ttyUSB0:/dev/ttyUSB0:rwm which will map the device to the same location inside the container as outside the container and give the container read/write/mknod permission on the device.