Swarm Classic: a container clustering system. Not to be confused with Docker Swarm which is at https://github.com/docker/swarmkit
5.76k
stars
1.08k
forks
source link
Ingress routing broke after service update with start first #2969
Closed
thyn closed 4 years ago
Can't access ports after update service with start first (ingress routing). Disabling start first is resolving issue.
Steps to reproduce the issue:
docker service create --name httpd -p 8001:80 httpd:2.4
iptables --list DOCKER-INGRESS -n Chain DOCKER-INGRESS (1 references) target prot opt source destination ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8001 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED tcp spt:8001 RETURN all -- 0.0.0.0/0 0.0.0.0/0
docker service update --update-order start-first httpd
docker service update --publish-add target=80,published=8002 httpd
iptables --list DOCKER-INGRESS -n (no any port after update)
Chain DOCKER-INGRESS (1 references) target prot opt source destination RETURN all -- 0.0.0.0/0 0.0.0.0/0
systemctl restart docker
iptables --list DOCKER-INGRESS -n
Chain DOCKER-INGRESS (1 references) target prot opt source destination ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8002 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED tcp spt:8002 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8001 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED tcp spt:8001 RETURN all -- 0.0.0.0/0 0.0.0.0/0
docker service update --publish-add target=80,published=8003 httpd
iptables --list DOCKER-INGRESS -n
Chain DOCKER-INGRESS (1 references) target prot opt source destination RETURN all -- 0.0.0.0/0 0.0.0.0/0
Describe the results you received:
Not working ports, No Ingress chain in iptables.
Describe the results you expected:
port forward should work, Ingress route in iptable for ports.
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Test was made on VM (Hyper-V)