Repository

Rk3588-Docker

rk3588 kernel开启docler需要依赖配置

README

Debian & Ubuntu 安装docker

卸载旧版本

  • 旧版本的 Docker 被称为docker,docker.io或docker-engine. 如果安装了这些,请卸载它们:
    sudo apt-get remove docker docker-engine docker.io containerd runc

    设置存储库

  • 更新apt包索引并安装包以允许apt通过 HTTPS 使用存储库:
    sudo apt-get update -y
    sudo apt-get install -y ca-certificates curl gnupg lsb-release

    添加 Docker 的官方 GPG 密钥:

    sudo mkdir -p /etc/apt/keyrings
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
  • 使用以下命令设置存储库:
    echo \
    "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
    $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

    安装 Docker

  • 更新apt包索引,安装最新版本的 Docker Engine、containerd 和 Docker Compose,或者进入下一步安装特定版本:
    sudo apt-get update
    sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
  • hello-world 通过运行映像来验证 Docker 引擎是否已正确安装。
    sudo docker run hello-world

    示例输出验证

    
    $ sudo docker run hello-world

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:

  1. The Docker client contacted the Docker daemon.
  2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
  3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
  4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/

For more examples and ideas, visit:
https://docs.docker.com/get-started/

$ sudo docker images hello-world
REPOSITORY TAG IMAGE ID SIZE
hello-world latest feb5d9fea6a5 13256

- 跑到这里就验证成功了。

## 玩转Jellyfin

- 首先特别感谢[nyanmisaka](https://github.com/nyanmisaka)支持了RK3588平台在Jellyfin中支持的视频硬件 具体详见:https://www.bilibili.com/read/cv28664442

### 开始工作
```bash
执行命令:docker pull nyanmisaka/jellyfin:latest-rockchip

root@d:~# docker pull nyanmisaka/jellyfin:latest-rockchip
latest-rockchip: Pulling from nyanmisaka/jellyfin
24e221e92a36: Pull complete
9d62c17e62ce: Pull complete
08fa4394ed6f: Pull complete
b8f89987d278: Pull complete
335f5d79b415: Pull complete
Digest: sha256:ad89f75081e8d8c16e46c1b0c7df06c5681d15a89a322deb1a22defa35ce1143
Status: Downloaded newer image for nyanmisaka/jellyfin:latest-rockchip
docker.io/nyanmisaka/jellyfin:latest-rockchip
以上安装完成,接着执行下面代码:
docker run -d \
--name jellyfin \
--privileged \
--net=host \
--restart=unless-stopped \
--volume /path/to/config:/config \
--volume /path/to/cache:/cache \
--volume /path/to/media:/media \
`for dev in dri dma_heap mali0 rga mpp_service \
iep mpp-service vpu_service vpu-service \
hevc_service hevc-service rkvdec rkvenc vepu h265e ; do \
[ -e "/dev/$dev" ] && echo " --device /dev/$dev"; \
done` \
nyanmisaka/jellyfin:latest-rockchip

输出如下:
root@d:~# docker run -d \
--name jellyfin \
--privileged \
--net=host \
--restart=unless-stopped \
--volume /path/to/config:/config \
--volume /path/to/cache:/cache \
--volume /path/to/media:/media \
`for dev in dri dma_heap mali0 rga mpp_service \
iep mpp-service vpu_service vpu-service \
hevc_service hevc-service rkvdec rkvenc vepu h265e ; do \
[ -e "/dev/$dev" ] && echo " --device /dev/$dev"; \
done` \
nyanmisaka/jellyfin:latest-rockchip
acb4b0c9b3fc712c6b6689d48577cca3d03418340885231e00da52fda7208696
root@d:~#
表示安装成功