Open alexellis opened 7 years ago
With rebranding to Docker CE, a new repository was introduced with a new docker-ce package (instead of docker-engine). Docker CE 17.06 works fine on Raspbian using the official instructions for Debian: https://docs.docker.com/engine/installation/linux/docker-ce/debian/#install-using-the-repository
I have successfully tested these on Raspberry Pi 3 - some details below.
Device : Raspberry Pi 3 Linux red_pi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux
$git clone https://github.com/moby/moby
$ git fetch origin pull/34021/head:dont-set-architecture-constraint
$ git checkout dont-set-architecture-constraint
$make build
$make binary
$sudo systemctl stop docker
$sudo cp /home/pi/moby/bundles/latest/binary-daemon/* /usr/bin/
$sudo systemctl start docker
$ sudo docker version
Client:
Version: 17.06.1-ce
API version: 1.30
Go version: go1.8.3
Git commit: 874a737
Built: Thu Aug 17 23:02:18 2017
OS/Arch: linux/arm
Server: Version: 17.06.0-dev API version: 1.31 (minimum version 1.12) Go version: go1.8.3 Git commit: 5fa6df34d Built: Sun Aug 20 18:16:00 2017 OS/Arch: linux/arm Experimental: false
## Lets test docker itself first
$ sudo docker run armhf/hello-world
Hello from Docker on armhf! This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker Hub account: https://hub.docker.com
For more examples and ideas, visit: https://docs.docker.com/engine/userguide/
## Test docker swarm with faas from alexellis
Start a docker swarm (single node is fine)
`$ docker swarm init `
Lets get alexisellis's faas code (to test docker swarm)
`$git clone https://github.com/alexellis/faas`
`$cd faas`
`$./deploy_stack.armhf.sh`
Find your ip address
`$ifconfig `
Then open up browser and hit http://<use ip from ifconfig>:8080 to see the faas menu.
# Success!
Thanks for compiling all the instructions and comments into one 👍
@praseodym it really doesn't work fine which is the point of these issues. Please work through the issues and you'll see what's going wrong both on ARMv6 and with Swarm.
The last official Docker binaries for Raspberry Pi (Raspbian) were released in May at version 17.05. 17.05 is fully working including Docker Swarm and is available via
curl -sSL get.docker.com | sh
.Support was going to be dropped for Raspbian (and ARMv6) from 17.05 onwards, but fortunately the decision was re-considered.
We need to test Docker 17.07 RC on Raspbian Jessie and Stretch on the ARMv6 (Pi Zero/B/B+) and ARMv7 (RPi 2/3) platforms. Unfortunately this may mean building from source which can take some time and can be tricky on a small device.
Please setup an environment with instructions in #16
Then pick one or all of the following issues:
15
14
13