Trouble accessing container console over serial

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'```

Hi,
If I get it correctly you are trying to get console access to one of the services you are deploying to a device. If so, this could be achieved via ssh (SSH access - Balena Documentation). You want to do something like ssh device_id service_name. If you omit the service_name you will ssh into hostOS.

Hi, just to confirm; are you trying to access a console into of your services via a serial cable?