Skip to content

swarms created on 19.03 can not be accessed from machines on same network #1044

@jscottnz

Description

@jscottnz
  • This is a bug report
  • This is a feature request
  • [X ] I searched existing issues before opening this one

Expected behavior

Swarm created should be accessible (curl 10.0.0.50:8080) from machine on same network

Actual behavior

Swarm created is not accessible (curl 10.0.0.50:8080) from machine on same network.

Steps to reproduce the behavior

This problem involves two machines, ( 10.0.0.50 ) a docker host and any other machine on the 10.0.0.x network, ie a load balancer or jumphost

On centos 7 all updated and patched, on a vm on a cloud platform, follow docker installing guide for version 18.

Run nginx as a swarm service:

docker swarm init
docker service create --name nginx --publish published=8080,target=80 nginx

Test and note that nginx is accessible (curl 10.0.0.50:8080) from another host on the same network.

Upgrade docker to version 19.

Test and note that nginx is accessible (curl 10.0.0.50:8080) from another host on the same network.

Destroy the swarm:

docker swarm leave --force

Run nginx as a swarm service:

docker swarm init
docker service create --name nginx --publish published=8080,target=80 nginx

Test and note that nginx is NOT accessible (curl 10.0.0.50:8080) from another host on the same network.

This behaviour can also be reproduced with a fresh installation of version 19.

You can also uninstall docker-ce 19 and install 18. The swarm created in 19 is still not accessible. If you remove the swarm and create it (in version 18) it is accessible.

Output of docker version:

Client: Docker Engine - Community
 Version:           19.03.11
 API version:       1.40
 Go version:        go1.13.10
 Git commit:        42e35e61f3
 Built:             Mon Jun  1 09:13:48 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.11
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.10
  Git commit:       42e35e61f3
  Built:            Mon Jun  1 09:12:26 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

Output of docker info:

Client:
 Debug Mode: false

Server:
 Containers: 1
  Running: 1
  Paused: 0
  Stopped: 0
 Images: 1
 Server Version: 19.03.11
 Storage Driver: overlay2
  Backing Filesystem: xfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: active
  NodeID: ccngtgfpe0quhr0qhe9r9x1id
  Is Manager: true
  ClusterID: t3utljatelbhs3up8p783658j
  Managers: 1
  Nodes: 1
  Default Address Pool: 10.0.0.0/8
  SubnetSize: 24
  Data Path Port: 4789
  Orchestration:
   Task History Retention Limit: 5
  Raft:
   Snapshot Interval: 10000
   Number of Old Snapshots to Retain: 0
   Heartbeat Tick: 1
   Election Tick: 10
  Dispatcher:
   Heartbeat Period: 5 seconds
  CA Configuration:
   Expiry Duration: 3 months
   Force Rotate: 0
  Autolock Managers: false
  Root Rotation In Progress: false
  Node Address: 10.0.0.50
  Manager Addresses:
   10.0.0.50:2377
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
 init version: fec3683
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 3.10.0-1062.9.1.el7.x86_64
 Operating System: CentOS Linux 7 (Core)
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 7.638GiB
 Name: swarm4.novalocal
 ID: P4WR:IS7N:G47I:HEM4:XPHM:DM63:7SBP:7OM5:DHTA:GFS5:5H6K:H6OD
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: bridge-nf-call-ip6tables is disabled

Additional environment details (AWS, VirtualBox, physical, etc.)
Running in a data centre on vms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions