Not sure what I’m doing wrong here but when I’m serial consoling in it only opens a console on the host os. Can anyone point out what I’m doing wrong. I’m trying to get through to a serial console on the container. Here’s the relevant portion of my compose file for reference.
build:
context: .
dockerfile: Dockerfile.template
restart: always
privileged: true
network_mode: host
environment:
- DISPLAY=$DISPLAY
devices:
- "/dev/bus/usb:/dev/bus/usb"
- "/tmp/.X11-unix:/tmp/.X11-unix"
- "/dev/serial0:/dev/serial0"
- "/dev/ttyAMA0:/dev/ttyAMA0"
- "/dev/ttyS0:/dev/ttyS0"
device_cgroup_rules:
- "c 189:* rmw"
tty: true
labels:
io.balena.features.dbus: '1'
io.balena.features.balena-socket: '1'
io.balena.features.kernel-modules: '1'
io.balena.features.sysfs: '1'```