source: Docker en Raspberry Pi
Check version, release and keyname of OS:
$ cat /etc/debian_version
9.5
$ cat /etc/os-release
ID=osmc
$ lsb_release -cs
stretch
Install required packages as neeeded:
$ sudo apt update
$ sudo apt install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
get signed key from docker do download packages:
$ curl -fsSL https://download.docker.com/linux/raspbian/gpg | sudo apt-key add -
Add docker oficial repository to your sources:
$ echo "deb [arch=armhf] https://download.docker.com/linux/raspbian $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list
Install:
$ sudo apt update
$ sudo apt install docker-ce
Enable and start service
$ sudo systemctl enable docker
$ sudo systemctl start docker
Add permission to run docker to default user:
$ sudo usermod -aG docker osmc
close and start session or restart docker daemon with:
$ sudo /etc/init.d/docker restart