最近想在Raspberry里搞些好玩的东西,又不想丢掉OSMC,毕竟看电影还是很爽的,于是想到了Docker,Google了一下,果然是支持的,安逸了。。。
- 先检查下当然系统
osmc@osmc:~$ cat /etc/debian_version
9.11
osmc@osmc:~$ cat /etc/os-release
PRETTY_NAME="Open Source Media Center"
NAME="OSMC"
VERSION="January 2020"
VERSION_ID="2020.01-1"
ID=osmc
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="https://www.osmc.tv"
SUPPORT_URL="https://www.osmc.tv"
BUG_REPORT_URL="https://www.osmc.tv"
osmc@osmc:~$ lsb_release -cs
stretch
- 安装下依赖包
$ sudo apt update
$ sudo apt install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
- 添加官方库
$ curl -fsSL https://download.docker.com/linux/raspbian/gpg | sudo apt-key add -
$ echo "deb [arch=armhf] https://download.docker.com/linux/raspbian $(lsb_release -cs) stable" | sudo tee -a /etc/apt/sources.list.d/docker.list
- 安装配置
$ sudo apt update
$ sudo apt install docker-ce
$ sudo usermod -aG docker osmc
$ sudo systemctl enable docker
$ sudo systemctl start docker