Torizon Docker Swarm (Apalis iMX6)

Hi, I am trying to setup a cluster using apalis iMX6. I am using TorizonCore Upstream 5.5.0+build.11 and Docker version 19.03.14-ce, build 5eb3275d40.

I initialized a service using

docker swarm init

and then started a nginx service publishing the port 8080 (bind 80).

docker service create --name nginx -p 8080:80 nginx

However, when I try to get response from the service using curl

curl -I <my-IP>:8080

I get

curl: (7) Failed to connect to <my-IP> port 8080: Connection refused

When I run the same container using docker run …, I get the correct response.
What am I missing? Any firewall block?

Thanks in advance.

Greetings @a.orlandi,

It seems docker swarm uses a much more complex networking structure: Use swarm mode routing mesh | Docker Documentation

May I ask for what purpose you are using docker swarm? It’s usage on Torizon is not very well documented/explored so there may be issues.

Best Regards,