Skip to content

Instantly share code, notes, and snippets.

@Peregrinox
Last active November 15, 2024 20:12
Show Gist options
  • Save Peregrinox/aa55c18866a851acc9d4e03a1054485c to your computer and use it in GitHub Desktop.
Save Peregrinox/aa55c18866a851acc9d4e03a1054485c to your computer and use it in GitHub Desktop.
Install docker in osmc on pi

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment