The documentation here https://docs.resin.io/faq/troubleshooting/faq/ says “It’s usually not necessary to forward ports within the container because the container is bound to the host networking.” This and other documentation (https://docs.resin.io/learn/develop/runtime/ under Exposed Ports) suggests that all ports are automatically published from the containers.
balena inspect <container ID> by default shows
"PublishAllPorts": false which causes anything using the host IP and a port number to fail to connect. This requires using a loopback interface to connect internally to any open ports and prevents a host computer from connecting directly to a service.
balena run --publish-all=true fixes this problem, but I’d like a solution which works with Resin’s autolaunching.
Is this configurable?