moby: No route to host / connection refused - swarm mode on ARM

I’ve set up a Node / ExpressJS service on port 3000 with a Raspberry Pi Model 2 using the install from get.docker.com. If I run the container with docker run it works OK and returns the text “hello” from curl.

CC/ @ManoMarks @DieterReuter @StefanScherer

Expected: curl -4 localhost:3000 should return hello

Actual: curl: (7) Failed to connect to localhost port 3000: Connection refused

Image built from:

https://github.com/alexellis/arm-alpinehello/

$ docker service create --name hello --publish 3000:3000 --replicas=1 alexellis2/arm-alpinehello:latest
docker service ps hello
ID                         NAME     IMAGE                              NODE       DESIRED STATE  CURRENT STATE          ERROR
2m0sodl714p3qowp6hk9zq3nx  hello.1  alexellis2/arm-alpinehello:latest  pi2swarm7  Running        Running 2 minutes ago 
ID                           HOSTNAME   STATUS  AVAILABILITY  MANAGER STATUS
207yx66h5q1i3qn4zwqxy49gc    pi2swarm6  Ready   Active        Reachable
6009dx3xhfmyc5qdkjuwlzgd9    pi2swarm5  Ready   Active        
6ftjhnqqmtjkyk7r5trxcrm9m    pi2swarm2  Ready   Active        
7725832n2rsj1e39edrb02nsr *  pi2swarm1  Ready   Active        Leader
ae26fnpuyh9slt9olan725uir    pi2swarm3  Ready   Active        
cdewqt2lzd3trkretleghe2v9    pi2swarm4  Ready   Active        Reachable
evrpb5uq9li9qbw9a28spkyon    pi2swarm7  Ready   Active   
docker version
Client:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:        Thu Aug 18 05:31:15 2016
 OS/Arch:      linux/arm

Server:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:        Thu Aug 18 05:31:15 2016
 OS/Arch:      linux/arm
pi@pi2swarm1:~ $ cat /etc/issue
Raspbian GNU/Linux 8 \n \l

pi@pi2swarm1:~ $ uname -a
Linux pi2swarm1 4.4.11-v7+ #888 SMP Mon May 23 20:10:33 BST 2016 armv7l GNU/Linux
pi@pi2swarm1:~ $ 
$ docker info
Containers: 2
 Running: 2
 Paused: 0
 Stopped: 0
Images: 27
Server Version: 1.12.1
Storage Driver: overlay
 Backing Filesystem: extfs
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host null overlay
Swarm: active
 NodeID: 7725832n2rsj1e39edrb02nsr
 Is Manager: true
 ClusterID: bf29ss6elcv9xy866z2pcwymf
 Managers: 3
 Nodes: 7
 Orchestration:
  Task History Retention Limit: 5
 Raft:
  Snapshot Interval: 10000
  Heartbeat Tick: 1
  Election Tick: 3
 Dispatcher:
  Heartbeat Period: 5 seconds
 CA Configuration:
  Expiry Duration: 3 months
 Node Address: 192.168.0.54
Runtimes: runc
Default Runtime: runc
Security Options:
Kernel Version: 4.4.11-v7+
Operating System: Raspbian GNU/Linux 8 (jessie)
OSType: linux
Architecture: armv7l
CPUs: 4
Total Memory: 925.5 MiB
Name: pi2swarm1
ID: XMTN:LXMA:MUKR:WDLH:AOQ5:QSZR:SOKF:6MT6:KPDW:AKO4:BIDQ:4HHG
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Username: alexellis2
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
WARNING: No kernel memory limit support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: No cpuset support
Insecure Registries:
 127.0.0.0/8

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 20 (12 by maintainers)

Most upvoted comments

The vxlan module has been included in the 4.4.19 kernel update.