moby: Cannot run hello-world container on Raspberry Pi 3 model B
Description After installation, while running hello-world container.
Steps to reproduce the issue:
- Follow the installation guide at https://docs.docker.com/engine/installation/linux/debian/
- Run sudo docker run hello-world
Describe the results you received:
pi@meta:~ $ sudo docker run hello-world
panic: standard_init_linux.go:175: exec user process caused "exec format error" [recovered]
panic: standard_init_linux.go:175: exec user process caused "exec format error"
goroutine 1 [running, locked to thread]:
panic(0x335e30, 0x56e47280)
/usr/local/go/src/runtime/panic.go:481 +0x330
github.com/urfave/cli.HandleAction.func1(0x56e9f958)
/go/src/github.com/opencontainers/runc/Godeps/_workspace/src/github.com/urfave/cli/app.go:478 +0x328
panic(0x335e30, 0x56e47280)
/usr/local/go/src/runtime/panic.go:443 +0x448
github.com/opencontainers/runc/libcontainer.(*LinuxFactory).StartInitialization.func1(0x56e9f5e0, 0x56dca308, 0x56e9f668)
/go/src/github.com/opencontainers/runc/Godeps/_workspace/src/github.com/opencontainers/runc/libcontainer/factory_linux.go:259 +0x13c
github.com/opencontainers/runc/libcontainer.(*LinuxFactory).StartInitialization(0x56e44360, 0x4641f4b8, 0x56e47280)
/go/src/github.com/opencontainers/runc/Godeps/_workspace/src/github.com/opencontainers/runc/libcontainer/factory_linux.go:277 +0x498
main.glob.func8(0x56e561e0, 0x0, 0x0)
/go/src/github.com/opencontainers/runc/main_unix.go:26 +0x58
reflect.Value.call(0x2eb380, 0x3f26c8, 0x13, 0x364638, 0x4, 0x56e9f918, 0x1, 0x1, 0x0, 0x0, ...)
/usr/local/go/src/reflect/value.go:435 +0xeb4
reflect.Value.Call(0x2eb380, 0x3f26c8, 0x13, 0x56e9f918, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/reflect/value.go:303 +0x84
github.com/urfave/cli.HandleAction(0x2eb380, 0x3f26c8, 0x56e561e0, 0x0, 0x0)
/go/src/github.com/opencontainers/runc/Godeps/_workspace/src/github.com/urfave/cli/app.go:487 +0x230
github.com/urfave/cli.Command.Run(0x366a58, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3d0ad0, 0x51, 0x0, ...)
/go/src/github.com/opencontainers/runc/Godeps/_workspace/src/github.com/urfave/cli/command.go:191 +0xcd0
github.com/urfave/cli.(*App).Run(0x56e30240, 0x56e12050, 0x2, 0x2, 0x0, 0x0)
/go/src/github.com/opencontainers/runc/Godeps/_workspace/src/github.com/urfave/cli/app.go:240 +0x84c
main.main()
/go/src/github.com/opencontainers/runc/main.go:137 +0xbb4
Describe the results you expected:
Hello from Docker! This message shows that your installation appears to be working correctly. […]
Output of docker version
:
Client:
Version: 1.12.5
API version: 1.24
Go version: go1.6.4
Git commit: 7392c3b
Built: Fri Dec 16 03:20:35 2016
OS/Arch: linux/arm
Server:
Version: 1.12.5
API version: 1.24
Go version: go1.6.4
Git commit: 7392c3b
Built: Fri Dec 16 03:20:35 2016
OS/Arch: linux/arm
Output of docker info
:
Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 4
Server Version: 1.12.5
Storage Driver: devicemapper
Pool Name: docker-179:2-134157-pool
Pool Blocksize: 65.54 kB
Base Device Size: 10.74 GB
Backing Filesystem: ext4
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 515.2 MB
Data Space Total: 107.4 GB
Data Space Available: 13.35 GB
Metadata Space Used: 1.208 MB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.146 GB
Thin Pool Minimum Free Space: 10.74 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Deferred Deletion Enabled: false
Deferred Deleted Device Count: 0
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.90 (2014-09-01)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options:
Kernel Version: 4.4.38-v7+
Operating System: Raspbian GNU/Linux 8 (jessie)
OSType: linux
Architecture: armv7l
CPUs: 4
Total Memory: 925.5 MiB
Name: meta
ID: YZNI:JOJG:FNGF:MIL2:NCY6:A2SG:VYLI:MVFU:VY2T:VUTZ:VTLF:MH6X
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
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
Additional environment details (AWS, VirtualBox, physical, etc.): I’m running docker-engine Raspberry Pi 3 model B. Uname: Linux meta 4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l GNU/Linux
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 20 (10 by maintainers)
The images you are running are not compiled for arm. Try docker run armhf/hello-world
On 21 Dec 2016 4:22 a.m., “Giuseppe Roberti” notifications@github.com wrote:
For googlers check the Sha-Bang on your Entrypoint and CMD scripts.
#!/bin/bash
@piribes Hey, I do a lot of work with ARM and the Raspberry Pi. Have a read of this - and see if it’s useful too. http://blog.alexellis.io/5-things-docker-rpi/