Docker in Raspberry Pi 3

Remove Docker 1.8

apt-get remove docker.io
apt-get autoremove
apt-get clean

Install 3rd-party docker

Install docker-hypriot 1

sudo apt-get install -y apt-transport-https

wget -q https://packagecloud.io/gpg.key -O - | sudo apt-key add -

echo 'deb https://packagecloud.io/Hypriot/Schatzkiste/debian/ wheezy main' | sudo tee /etc/apt/sources.list.d/hypriot.list

sudo apt-get update

sudo apt-get install -y docker-hypriot

sudo systemctl enable docker

Fix permission issue

Change docker.sock owner

sudo chown pi:docker /var/run/docker.sock

Or following add user to docker group 2

sudo gpasswd -a ${USER} docker

  1. tyrell/docker-install-rpi3.md 

  2. https://blog.csdn.net/xiojing825/article/details/79494408