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
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.