@Stux can you share a bit more on your network config?
Its typically a bad practice for the TrueNAS to have multiple IPs in the same broadcast domain anyway.
If one wishes to bind port 22 in a docker container to a host IP alias, one needs to disable ssh on that IP alias.
For example, a local gitlab implementation
services:
web:
image: gitlab/gitlab-ce:16.11.6-ce.0
logging:
options:
max-size: "1g"
max-file: "3"
restart: always
stop_grace_period: 5m
ports:
# bind to specific IP or all IPs... which will most likely fail since SSH already exists.
- '${GITLAB_IP:-0.0.0.0}:80:80'
- '${GITLAB_IP:-0.0.0.0}:443:443'
- '${GITLAB_IP:-0.0.0.0}:22:22'
An alternative is to use macvlan/ipvlan networking, but that will force you to burn an IP address per container, and requires a host to container route to be created if you desire host<->container networking.