Installing Docker on Raspbian

  • Raspbian is merely just a distribution of Debian Stretch, so you can use the Debian Stretch sources.

  • The important information is that the Raspberry Pi is a armhf architecture hardware, not arm64.

  • uname -a

Linux raspberrypi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux
  • All Raspberry Pis are compatible with arm32v6.
  • armv7l is a 32-bit processor.
file /bin/bash
/bin/bash: ELF 32-bit LSB executable, ARM
  • You may see Docker images at the Docker hub built for arm32v7 or arm32v6.
  • 64-bit arm processors are armv8l or higher.
apt-get install -y \
     apt-transport-https \
     ca-certificates \
     curl \
     gnupg2 \
     software-properties-common


curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
apt-key fingerprint 0EBFCD88


echo "deb [arch=armhf] https://download.docker.com/linux/debian/ stretch stable" > /etc/apt/sources.list.d/docker.list


apt-get update
apt-get install -y vim vim-syntax-docker
apt-get install -y docker-ce
systemctl enable docker
systemctl start docker
docker ps
docker pull alpine:latest
docker pull arm32v7/ubuntu:14.04
docker images
docker run --name=test1 -ti alpine:latest
exit
docker ps -a
docker rm test1
git@github.com:kubernetes/kubernetes.git

go get -d k8s.io/kubernetes
cd $GOPATH/src/k8s.io/kubernetes
make
categories: raspbian | raspberrypi | docker |