### Install 1panel Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/02.香橙派5plus/README.md This command initiates a one-click installation process for 1panel. ```bash curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sudo bash quick_start.sh ``` -------------------------------- ### Enable and Start Docker Service Source: https://github.com/frozengee/compose/blob/main/[06] 特殊版本/15.dify-生成式 AI 应用创新引擎/README.md Configures Docker to start automatically on boot and starts the Docker service immediately. ```bash systemctl enable --now docker ``` -------------------------------- ### Install CasaOS Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/02.香橙派5plus/README.md Run this command to perform a one-click installation of CasaOS. ```bash curl -fsSL https://get.casaos.io | sudo bash ``` -------------------------------- ### Install x-cmd Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/README.md Installs the x-cmd tool using a one-line command. This is a personal utility. ```bash eval "$(wget -O- https://get.x-cmd.com)" ``` -------------------------------- ### Batch Install Packages Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/README.md Installs multiple specified packages simultaneously using apt. ```bash apt install -y vim nano samba nfs-kernel-server rclone git pip clinfo neofetch btop ncdu lsof dnsmasq avahi-daemon # apt install -y 软件名1 软件名2 软件名3 软件名4 软件名5 ``` -------------------------------- ### Install Docker (Official Script) Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/README.md Installs Docker using the official convenience script. This method might be slower for users in certain regions due to direct access to official repositories. ```bash curl -fsSL https://get.docker.com | bash ``` -------------------------------- ### Install Docker Compose Source: https://github.com/frozengee/compose/blob/main/[06] 特殊版本/15.dify-生成式 AI 应用创新引擎/README.md Downloads and installs the latest version of Docker Compose. This command fetches the binary from GitHub and makes it executable. ```bash curl -L "https://mirrors.tuna.tsinghua.edu.cn/docker-compose/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d\" -f4)/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && sudo chmod +x /usr/local/bin/docker-compose ``` -------------------------------- ### Automatic Docker Installation with Aliyun Mirror Source: https://github.com/frozengee/compose/blob/main/docker.md Installs Docker automatically using a mirror provided by Aliyun. This can be faster for users in China. The command pipes the script directly to bash. ```bash curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun ``` -------------------------------- ### Install Single Package Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/README.md Installs a specified package using apt. The '-y' flag automatically confirms the installation. ```bash apt install -y vim # apt install -y 软件名 ``` -------------------------------- ### Install WebDAV Client Package Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/04.TN3568/README.md Install the davfs2 package, which provides the necessary tools for mounting WebDAV shares. ```bash apt update apt install davfs2 -y ``` -------------------------------- ### Automatic Docker Installation with Official Script Source: https://github.com/frozengee/compose/blob/main/docker.md This method uses the official Docker installation script to automatically set up Docker Engine. It downloads the script and then executes it with root privileges. ```bash curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh ``` -------------------------------- ### Verify OpenCL with clinfo Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/02.香橙派5plus/README.md Install the 'clinfo' utility and run it to confirm that the OpenCL runtime and GPU firmware are correctly detected on the host system. ```bash apt update && sudo apt install -y clinfo && clinfo ``` -------------------------------- ### Install Local .deb Package Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/README.md Installs a .deb package file. Apt handles dependency resolution automatically. ```bash apt install ./包名.deb ``` -------------------------------- ### Synology DSM Kernel Information Example Source: https://github.com/frozengee/compose/blob/main/[06] 特殊版本/46.魔法/46-03.v2raya-易用而强大、跨平台的V2Ray客户端/README.md This is an example output of the 'uname -a' command on a Synology DSM 7 system. It shows the kernel version and architecture, which are needed for compatibility checks. ```text Linux DSM7 4.4.180+ #42218 SMP Mon Oct 18 19:17:56 CST 2021 x86_64 GNU/Linux synology_apollolake_918+ ``` -------------------------------- ### Verify Docker Installation Source: https://github.com/frozengee/compose/blob/main/docker.md Checks the installed Docker version to confirm that the installation was successful and Docker is running. ```bash docker version ``` -------------------------------- ### Docker Run Command for v2raya with Custom Entrypoint Source: https://github.com/frozengee/compose/blob/main/[06] 特殊版本/46.魔法/46-03.v2raya-易用而强大、跨平台的V2Ray客户端/README.md Example Docker run command to start v2raya in detached mode with persistent configuration and a custom entrypoint script. This ensures necessary kernel modules are loaded before v2raya starts. ```bash docker run -d \ --restart=always \ --privileged \ --network=host \ --name v2raya \ -e V2RAYA_ADDRESS=0.0.0.0:2017 \ -e IPTABLES_MODE=legacy \ -e V2RAYA_NFTABLES_SUPPORT=off \ -v /lib/modules:/lib/modules \ -v /etc/resolv.conf:/etc/resolv.conf \ -v /volume1/docker/v2raya-config:/etc/v2raya \ --entrypoint /etc/v2raya/bootstrap.sh \ mzz2017/v2raya ``` -------------------------------- ### NAS User Permissions (PUID / PGID) Examples Source: https://context7.com/frozengee/compose/llms.txt Examples of common PUID/PGID values for different NAS systems. Use the `id username` command via SSH to find the correct values for your user. ```shell # SSH 中执行 id 用户名 查询,例如 id link # 常见结果: # 群晖第一个用户 uid=1026(link) gid=100(users) groups=100(users),101(administrators) # 威联通第一个用户 uid=1000(link) gid=100(everyone) groups=100(everyone),0(administrators) # 飞牛OS第一个用户 uid=1000(link) gid=1001(Users) groups=1001(Users),1000(Administrators) # Linux 通用(Debian/Ubuntu/OMV) uid=1000(link) gid=1000(link) groups=1000(link) # unRAID uid=1000(link) gid=100(users) groups=100(users) # 铁威马(root 权限) uid=0(link) gid=0(everyone) groups=0(everyone),3(admin),4(allusers) ``` -------------------------------- ### Update APT Sources and Install Git Source: https://github.com/frozengee/compose/blob/main/[06] 特殊版本/15.dify-生成式 AI 应用创新引擎/README.md Updates the system's package list and installs Git and other essential tools. Ensure your system has internet access to fetch packages. ```bash echo "[Info] 正在备份默认apt源..." cp /etc/apt/sources.list /etc/apt/sources.list.bak echo "[Info] 正在替换apt源为清华apt源..." echo deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse > /etc/apt/sources.list echo deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse >> /etc/apt/sources.list echo deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse >> /etc/apt/sources.list echo deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse >> /etc/apt/sources.list echo "[Info] 正在更新源..." apt update echo "[Info] 正在更新软件..." apt upgrade -y ``` ```bash apt update && apt upgrade && apt install -y git vim nano ``` -------------------------------- ### Synology Docker Configuration and Data Paths Source: https://github.com/frozengee/compose/blob/main/volumes.md Provides example paths for Docker container configuration and data directories on Synology NAS systems. ```shell 💡群晖的docker容器配置文件目录存放路径 /volume*/docker/emby 💡群晖的数据目录存放路径开头 /volume*/共享文件夹 ``` -------------------------------- ### Automatic Docker Installation with Azure China Cloud Mirror Source: https://github.com/frozengee/compose/blob/main/docker.md Installs Docker automatically using a mirror provided by Azure China Cloud. This is suitable for users in China. The script is piped directly to bash. ```bash curl -fsSL https://get.docker.com | bash -s docker --mirror AzureChinaCloud ``` -------------------------------- ### Check .deb Package Installation Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/README.md Verifies if a .deb package has been successfully installed by searching its name in the package list. ```bash dpkg -l | grep 包名.deb ``` -------------------------------- ### Install Docker Engine Source: https://github.com/frozengee/compose/blob/main/docker.md Installs the Docker CE (Community Edition) package along with its command-line interface, the containerd runtime, and the Docker Buildx and Compose plugins. ```bash sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin ``` -------------------------------- ### Install Latest Docker Compose Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/README.md Downloads and installs the latest stable version of Docker Compose. It determines the latest version from GitHub releases and places the binary in /usr/local/bin. ```bash COMPOSE_VERSION=$(git ls-remote https://github.com/docker/compose | grep refs/tags | grep -oP "[0-9]+.[0-9][0-9]+.[0-9]+" | sort --version-sort | tail -n 1) sh -c "curl -L https://github.com/docker/compose/releases/download/v${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose" chmod +x /usr/local/bin/docker-compose ``` -------------------------------- ### Clone and Deploy Dify Application Source: https://context7.com/frozengee/compose/llms.txt Steps to clone the Dify source code, configure environment variables, and start the application using Docker Compose. Remember to adjust port configurations. ```shell # 克隆 Dify 源码(以 0.15.3 为例) mkdir -p /mnt/docker/dify && cd /mnt/docker/dify git clone https://github.com/langgenius/dify.git --branch 0.15.3 cd dify/docker cp .env.example .env # 修改端口(将默认 80 改为自定义端口,避免冲突) # 找到 nginx 的 ports 配置,修改为: # ports: # - 15580:80 # 启动所有服务(共 11 个容器) docker-compose up -d # 验证所有容器正常运行 docker-compose ps # 访问地址 # http://NAS的IP:15580 # 首次访问需要创建管理员账号 ``` -------------------------------- ### Check Docker and Compose Versions Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/README.md Verify the installed versions of Docker and Docker Compose. ```bash docker version && docker compose version ``` -------------------------------- ### Configure Dify Environment Source: https://github.com/frozengee/compose/blob/main/[06] 特殊版本/15.dify-生成式 AI 应用创新引擎/README.md Copies the example environment configuration file to a new file and modifies the Docker Compose file for custom port mapping. This step is crucial for tailoring the deployment to your specific needs. ```bash cd docker/dify cp .env.example .env ``` ```yaml ports: # - '${EXPOSE_NGINX_PORT:-80}:${NGINX_PORT:-80}' # - '${EXPOSE_NGINX_SSL_PORT:-443}:${NGINX_SSL_PORT:-443}' - 15580:80 ``` -------------------------------- ### OMV User ID and Group Information Source: https://github.com/frozengee/compose/blob/main/uid_gid.md Example output for OpenMediaVault (OMV), detailing the system-created 'admin' user and a self-created 'link' user, including their UIDs, GIDs, and group memberships. ```bash uid=998(admin) gid=100(users) groups=100(users),997(openmediavault-admin) uid=1000(link) gid=1000(link) groups=1000(link),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),109(netdev) ``` -------------------------------- ### Ubuntu User ID and Group Information Source: https://github.com/frozengee/compose/blob/main/uid_gid.md Example output from the 'id link' command on an Ubuntu-based NAS, illustrating the user's UID and primary GID. ```bash uid=1000(link) gid=1000(link) groups=1000(link) ``` -------------------------------- ### Run Container with Macvlan Network (CLI) Source: https://github.com/frozengee/compose/blob/main/compose.md Launch a Docker container using the CLI and assign it to a pre-configured macvlan network with a specific IP address. This example uses the 'lucky' image for testing. ```shell docker run -d --name lucky-test --net=br0 --ip=192.168.1.233 docker.1panel.live/gdy666/lucky:latest ``` -------------------------------- ### QNAP User ID and Group Information Source: https://github.com/frozengee/compose/blob/main/uid_gid.md Example output from the 'id link' command on a QNAP NAS, showing the user's UID, primary GID ('everyone'), and membership in the 'administrators' group. ```bash uid=1000(link) gid=100(everyone) groups=100(everyone),0(administrators) ``` -------------------------------- ### dpanel Lite Deployment for Synology/QNAP/ASUS Source: https://github.com/frozengee/compose/blob/main/dpanel.md Command for deploying dpanel lite on Synology, QNAP, or ASUS NAS. Customize the volume path according to your NAS configuration. ```bash docker run -d --name dpanel --network=host --restart=always -e APP_NAME=dpanel -e APP_SERVER_PORT=8807 -v /var/run/docker.sock:/var/run/docker.sock -v /volume1/docker/dpanel:/dpanel registry.cn-hangzhou.aliyuncs.com/dpanel/dpanel:lite ``` -------------------------------- ### Deploy dpanel Visual Docker Management Panel Source: https://context7.com/frozengee/compose/llms.txt Instructions for deploying dpanel, a recommended Docker management tool, using `docker run`. Note the differences in network mode and volume mapping for QNAP. ```shell # 群晖 / 新绿联 / 华硕(SSH 中执行) docker run -d --name dpanel --network=host --restart=always \ -e APP_NAME=dpanel \ -e APP_SERVER_PORT=8807 \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /volume1/docker/dpanel:/dpanel \ registry.cn-hangzhou.aliyuncs.com/dpanel/dpanel:lite # unRAID docker run -d --name dpanel --network=host --restart=always \ -e APP_NAME=dpanel \ -e APP_SERVER_PORT=8807 \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /mnt/user/appdata/dpanel:/dpanel \ registry.cn-hangzhou.aliyuncs.com/dpanel/dpanel:lite # 飞牛OS docker run -d --name dpanel --network=host --restart=always \ -e APP_NAME=dpanel \ -e APP_SERVER_PORT=8807 \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /vol1/1000/docker/dpanel:/dpanel \ registry.cn-hangzhou.aliyuncs.com/dpanel/dpanel:lite # 威联通(不支持 host 模式,使用端口映射) docker run -d --name dpanel -p 8807:8080 --restart=always \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /share/Container/dpanel:/dpanel \ registry.cn-hangzhou.aliyuncs.com/dpanel/dpanel:lite # 访问地址 http://NAS的IP:8807 ``` -------------------------------- ### Mount all filesystems and verify Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/02.香橙派5plus/README.md After modifying /etc/fstab, run 'mount -a' to mount all specified filesystems. Verify that the mounts are successful and persistent. ```bash mount -a # Test auto-mount, if no errors, configuration is successful df -h | grep emmc df -h | grep ssd # Verify mount status ``` -------------------------------- ### Run Hello-World Test Container Source: https://github.com/frozengee/compose/blob/main/docker.md Executes a simple test container using `docker run hello-world`. This command downloads a small image and runs it to verify that Docker can pull images and run containers correctly. ```bash sudo docker run hello-world ``` -------------------------------- ### Install Docker Dependencies Source: https://github.com/frozengee/compose/blob/main/docker.md Installs necessary packages that allow the APT package manager to use HTTPS repositories, which is required for adding Docker's official repository. ```bash sudo apt install apt-transport-https ca-certificates curl software-properties-common ``` -------------------------------- ### Create User with Home Directory Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/README.md Creates a new user account and automatically generates a home directory for them. ```bash useradd -m 用户名 ``` -------------------------------- ### Configure qBittorrent Docker Service Source: https://context7.com/frozengee/compose/llms.txt Sets up the linuxserver/qbittorrent image for torrent downloads. Ensure to update volume paths and consider using host network mode for better performance and IPv6 support. Note that for qBittorrent 4.6.0+, the initial password is in the logs. ```yaml version: "3" services: qbittorrent: image: linuxserver/qbittorrent:latest # qb 4.6.0+ 初始密码从日志中查看,不再是 adminadmin container_name: qbittorrent hostname: qbittorrent volumes: - 【docker数据目录】/qbittorrent:/config - 【下载存放目录】:/downloads - 【监控目录】/[00] Torrents监控自动下载目录:/watch environment: - WEBUI_PORT=8085 # 自定义 WebUI 端口 - TORRENTING_PORT=25800 # 自定义传输端口,不要用 6881 - PUID=0 - PGID=0 # root 权限,与 MP 联动必须 - UMASK=022 - TZ=Asia/Shanghai network_mode: host # 推荐 host 模式,支持 IPv6 restart: unless-stopped labels: net.unraid.docker.webui: http://[IP]:[PORT:8085] ``` ``` -------------------------------- ### Directory Structure and Platform Adaptation Source: https://context7.com/frozengee/compose/llms.txt Overview of directory structures and their corresponding NAS platform adaptations. Use placeholder paths for universal templates. ```text [00] 通用模板 ← 适配所有平台,路径使用占位符 [01] MACVLAN网络 ← 使用独立 IP 的特殊网络配置 [02] unRAID ← 路径前缀 /mnt/user/appdata/ [03] 群晖 ← 路径前缀 /volume1/docker/ [04] 威联通 ← 路径前缀 /share/Container/ [05] 飞牛OS ← 路径前缀 /vol1/1000/docker/ [06] 特殊版本 ← 需要特殊配置的应用(AI、媒体自动化等) [07] 铁威马 ← TOS6 路径前缀 /Volume1/docker/ [08] 万由 ← 路径前缀 /mnt/unas/data/docker/ [09] 相对路径 ← 使用相对路径的版本 [10] Rockchip ← RK3588 等 ARM 开发板专属 [11] 绿联 ← 路径前缀 /volume1/docker/ (新系统基于 Debian) ``` -------------------------------- ### Configure Docker国内镜像源 Source: https://github.com/frozengee/compose/blob/main/[06] 特殊版本/15.dify-生成式 AI 应用创新引擎/README.md Sets up domestic Docker image acceleration mirrors to improve download speeds. This involves creating or overwriting the daemon.json file and restarting the Docker service. ```bash #- 终端命令添加 Docker 镜像加速 #- 以部分镜像加速为例 #- 以下是一整条命令,一起复制到终端运行 # 清空 /etc/docker/daemon.json 文件,准备写入新内容 echo >/etc/docker/daemon.json # 使用 cat 命令将以下内容写入 /etc/docker/daemon.json 文件 # 配置 Docker 镜像加速器,使用多个镜像源来提高镜像下载速度 cat >/etc/docker/daemon.json < /etc/apt/sources.list echo deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse >> /etc/apt/sources.list echo deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse >> /etc/apt/sources.list echo deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse >> /etc/apt/sources.list echo "[Info] 正在更新源..." apt update echo "[Info] 正在更新软件..." apt upgrade -y ``` -------------------------------- ### Docker Container Management Commands Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/README.md Common Docker commands for managing containers, including listing, starting, restarting, stopping, killing, and removing them. Also includes tagging images. ```bash docker ps ``` ```bash docker start 容器ID或容器名 ``` ```bash docker restart 容器ID或容器名 ``` ```bash docker stop 容器ID或容器名 ``` ```bash docker kill 容器ID或容器名 ``` ```bash docker rm 容器ID或容器名 ``` ```bash docker tag 旧镜像名字 新镜像名 ``` -------------------------------- ### Configure PTVicomo UID and Passkey Source: https://github.com/frozengee/compose/blob/main/[06] 特殊版本/01.自动化媒体库/moviepilot/README.md Enter your PTVicomo user UID and passkey. ```shell # - PTVICOMO_UID= # - PTVICOMO_PASSKEY= ``` -------------------------------- ### Deploy Dify with Docker Compose Source: https://github.com/frozengee/compose/blob/main/[06] 特殊版本/15.dify-生成式 AI 应用创新引擎/README.md Starts the Dify services in detached mode using Docker Compose. This command will build and run all necessary containers defined in the docker-compose.yaml file. ```bash docker-compose up -d ``` -------------------------------- ### Configure Automatic WebDAV Mounting via fstab Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/04.TN3568/README.md Add an entry to /etc/fstab to automatically mount the WebDAV share on system boot. Use 'user' and 'noauto' options as appropriate. ```bash nano /etc/fstab # 添加以下内容 https://example.com/webdav /mnt/emmc/webdav davfs user,rw,noauto 0 0 ``` -------------------------------- ### unRAID User ID and Group Information Source: https://github.com/frozengee/compose/blob/main/uid_gid.md Example output from the 'id link' command on an unRAID system, showing the user's UID and primary GID, which is typically 'users'. ```bash uid=1000(link) gid=100(users) groups=100(users) ``` -------------------------------- ### Create User with Custom UID and Home Directory Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/README.md Creates a new user account with a specified User ID (UID) and home directory path. ```bash useradd -m -u 1000 -d /home/用户名 用户名 ``` -------------------------------- ### Create WebDAV Mount Point Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/04.TN3568/README.md Create a directory, such as /mnt/emmc/webdav, to serve as the mount point for the WebDAV share. ```bash mkdir /mnt/emmc/webdav ``` -------------------------------- ### Set Service Dependencies in Docker Compose Source: https://github.com/frozengee/compose/blob/main/compose.md Use the 'depends_on' directive in Docker Compose to define startup order and dependencies between services. This ensures that dependent services are started before the services that rely on them. ```yaml version: "3.7" services: web: build: . depends_on: - db - redis redis: image: redis db: image: postgres ``` -------------------------------- ### Configure Automatic WebDAV Mount (fstab) Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/README.md Adds an entry to the /etc/fstab file to automatically mount the WebDAV share on boot. 'noauto' prevents mounting on boot if not explicitly requested. ```bash nano /etc/fstab https://example.com/webdav /mnt/emmc/webdav davfs user,rw,noauto 0 0 ``` -------------------------------- ### JieSpace User ID and Group Information Source: https://github.com/frozengee/compose/blob/main/uid_gid.md Example output from the 'id' command on a JieSpace NAS, showing a user identified by phone number, their UID, GID, and membership in the 'sudo' group. ```bash uid=1004(手机号) gid=1005(手机号) groups=1005(手机号),27(sudo) ``` -------------------------------- ### Create User with Specific Shell Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/README.md Creates a new user account, generates their home directory, and assigns a specific login shell (e.g., /bin/bash). ```bash useradd -m -s /bin/bash 用户名 ``` -------------------------------- ### Debian User ID and Group Information Source: https://github.com/frozengee/compose/blob/main/uid_gid.md Example output from the 'id link' command on a Debian-based NAS, showing the user's UID, primary GID, and supplementary group memberships. ```bash uid=1000(link) gid=1000(link) groups=1000(link),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),100(users),106(netdev) ``` -------------------------------- ### QNAP Docker Configuration and Data Paths Source: https://github.com/frozengee/compose/blob/main/volumes.md Details paths for Docker data files, container configurations, and general data storage on QNAP NAS. It highlights recommended paths and notes on alternative, less visible methods. ```shell 💡威联通的docker数据文件目录存放路径 /share/CACHEDEV1_DATA/.qpkg/container-station 💡威联通的docker配置文件存放路径,可用于添加加速源 /share/CACHEDEV1_DATA/.qpkg/container-station/etc/docker.json 💡威联通的docker容器配置文件目录存放路径 /share/Container/emby 💡威联通的数据目录存放路径 /share/共享文件夹 💡另一种写法,但这个写法在webui上文件管理器中无法查看到,所以不推荐使用 /share/CACHEDEV*_DATA/共享文件夹 对于这两种写法,模板以第一种写法为主,因为创建好第一个存储池,系统会预设创建好部分文件夹 💡威联通初始化后会自动创建一些文件夹 /share/Multimeida # 多媒体 /share/Pulic # 公共文件夹 /share/Photo # 相册 ``` -------------------------------- ### FeiniaoOS User ID and Group Information Source: https://github.com/frozengee/compose/blob/main/uid_gid.md Example output from the 'id link' command on a FeiniaoOS NAS, showing the user's UID, primary GID ('Users'), and membership in the 'Administrators' group. ```bash uid=1000(link) gid=1001(Users) groups=1001(Users),1000(Administrators) ``` -------------------------------- ### Create SATA Mount Point Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/04.TN3568/README.md Create a directory, such as /mnt/ssd, to serve as the mount point for the SATA drive. ```bash mkdir /mnt/ssd # 将挂载到 /mnt/ssd 路径 ``` -------------------------------- ### Asustor User ID and Group Information Source: https://github.com/frozengee/compose/blob/main/uid_gid.md Example output from the 'id link' command on an Asustor NAS, showing the user's UID, primary GID ('users'), and membership in the 'administrators' group. ```bash uid=1000(link) gid=100(users) groups=100(users),999(administrators) ``` -------------------------------- ### dpanel Lite Deployment for Old Ugreen NAS Source: https://github.com/frozengee/compose/blob/main/dpanel.md Command to deploy dpanel lite on older Ugreen NAS models. Remember to replace '用户ID' with your actual user ID. ```bash docker run -d --name dpanel --network=host --restart=always -e APP_NAME=dpanel -e APP_SERVER_PORT=8807 -v /var/run/docker.sock:/var/run/docker.sock -v /mnt-dm-0/.ugreen_nas/用户ID/docker/dpanel:/dpanel registry.cn-hangzhou.aliyuncs.com/dpanel/dpanel:lite

记得把"用户ID"替换掉 ``` -------------------------------- ### TerraMaster User ID and Group Information Source: https://github.com/frozengee/compose/blob/main/uid_gid.md Example output from the 'id link' command on a TerraMaster NAS, indicating that the user 'link' has UID and GID 0, with memberships in 'everyone', 'admin', and 'allusers'. ```bash uid=0(link) gid=0(everyone) groups=0(everyone),3(admin),4(allusers) ``` -------------------------------- ### Synology User ID and Group Information Source: https://github.com/frozengee/compose/blob/main/uid_gid.md Example output from the 'id link' command on a Synology NAS, showing the user's UID, primary GID ('users'), and membership in the 'administrators' group. ```bash uid=1026(link) gid=100(users) groups=100(users),101(administrators) ``` -------------------------------- ### dpanel Lite Deployment for FeiniuOS NAS Source: https://github.com/frozengee/compose/blob/main/dpanel.md Deploy dpanel lite on FeiniuOS. Adjust the volume path to your Docker data directory. ```bash docker run -d --name dpanel --network=host --restart=always -e APP_NAME=dpanel -e APP_SERVER_PORT=8807 -v /var/run/docker.sock:/var/run/docker.sock -v /vol1/1000/docker/dpanel:/dpanel registry.cn-hangzhou.aliyuncs.com/dpanel/dpanel:lite ``` -------------------------------- ### Configure DiscFan UID and Passkey Source: https://github.com/frozengee/compose/blob/main/[06] 特殊版本/01.自动化媒体库/moviepilot/README.md Enter your DiscFan user UID and passkey. ```shell # - DISCFAN_UID= # - DISCFAN_PASSKEY= ``` -------------------------------- ### Deploy Portainer CE (Chinese Version) on Synology NAS Source: https://github.com/frozengee/compose/blob/main/portainer.md Command to deploy the Chinese Portainer CE on a Synology NAS. Ensure the volume path `/volume1/docker/portainer-zh` is correctly set for your Synology setup. ```bash docker run -d -p 9000:9000 --name=portainer-zh --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /volume1/docker/portainer-zh:/data 6053537/portainer-ce:latest ``` -------------------------------- ### 配置mt-photos-deepface Docker Source: https://github.com/frozengee/compose/blob/main/[06] 特殊版本/03.MT相册/README.md 此配置用于部署mt-photos-deepface服务,支持多种镜像标签以适应不同硬件环境(如CPU无AVX指令或NVIDIA GPU)。请根据实际需求选择合适的镜像标签,并配置API认证密钥和端口映射。 ```yaml mt-photos-deepface: image: mtphotos/mt-photos-deepface:latest # 镜像地址,不支持arm架构 # noavx-latest: 如果改容器无法启动,尝试使用这支持cpu无avx指令的tag # cuda-latest: CUDA版本镜像,N卡用户可以选择这个tag container_name: mt-photos-deepface # 容器名字 hostname: mt-photos-deepface # 主机名 environment: - API_AUTH_KEY=1234567890 # 人脸识别API,可以随便写,在mt-photos内设置要对应该项 ###################################### # volumes: # - 【这里替换为你的docker数据存放目录】/mt-photos/deepface/models:/models ## 镜像已内置 retinaface.h5 和 facenet512_weights.h5,如果不修改识别模型,不需要添加目录映射 ## 当指定了别的模型,容器内下载模型很慢,可以增加 /models 目录映射 ## 预训练模型下载地址:https://github.com/serengil/deepface_models/releases/tag/v1.0 ## 如果访问下载github速度慢,请打开下面这个github代理加速下载网站进行下载 ## https://mirror.ghproxy.com/ ## 将对应的预训练模型放到容器内的 /models/.deepface/weights/ 下,请对应放到实际路径上 ###################################### network_mode: bridge # network_mode: host # host模式需要容器内的端口不被占用,不需要端口映射,后续端口映射全都开头加#注释掉,否则注释掉这条 ports: - 8065:8066 # API 端口 # 注意:并不存在WebUI,只需要通过IP:PORT调用即可 restart: always # 重启策略,可根据实际情况而选择 no/always/unless-stopped/on-failure/on-failure:3 labels: net.unraid.docker.managed: dockerman net.unraid.docker.webui: https://mtmt.tech/docs/advanced/facial_api # 因不存在WebUI,所以此处为官方说明文档 net.unraid.docker.icon: /mnt/user/LOGO/mt-photos-deepface.png # 适用于unraid的图标,可以写unRAID的路径地址,也可以写一个图标地址(局域网或广域网均可) # 注意:通过compose创建的docker容器,无法在unRAID上进行编辑 ``` -------------------------------- ### Configure Gtkpw UID and Passkey Source: https://github.com/frozengee/compose/blob/main/[06] 特殊版本/01.自动化媒体库/moviepilot/README.md Enter your Gtkpw user UID and passkey. ```shell # - GTKPW_UID= # - GTKPW_PASSKEY= ``` -------------------------------- ### TrueNAS SCALE User ID and Group Information Source: https://github.com/frozengee/compose/blob/main/uid_gid.md Example output for TrueNAS SCALE, showing both the system-created 'truenas_admin' user and a self-created 'link' user, detailing their respective UIDs, GIDs, and group memberships. ```bash uid=950(truenas_admin) gid=950(truenas_admin) groups=950(truenas_admin),544(builtin_administrators) uid=3000(link) gid=3000(link) groups=950(link),545(builtin_users) ``` -------------------------------- ### Configure WinterSakura UID and Passkey Source: https://github.com/frozengee/compose/blob/main/[06] 特殊版本/01.自动化媒体库/moviepilot/README.md Enter your WinterSakura user UID and passkey. ```shell # - WINTERSAKURA_UID= # - WINTERSAKURA_PASSKEY= ``` -------------------------------- ### dpanel Lite Deployment for Debian/Ubuntu/OMV Source: https://github.com/frozengee/compose/blob/main/dpanel.md Use this command to deploy the lite version of dpanel on Debian, Ubuntu, or OMV. Ensure the volume path is adjusted to your actual storage location. ```bash docker run -d --name dpanel --network=host --restart=always -e APP_NAME=dpanel -e APP_SERVER_PORT=8807 -v /var/run/docker.sock:/var/run/docker.sock -v /mnt/docker/dpanel:/dpanel registry.cn-hangzhou.aliyuncs.com/dpanel/dpanel:lite

路径仅供参考,按自己实际操作 ``` -------------------------------- ### Uninstall Old Docker Versions Source: https://github.com/frozengee/compose/blob/main/docker.md Before installing a new version of Docker Engine, it's recommended to remove any pre-existing Docker packages to avoid conflicts. This command iterates through common Docker-related package names and removes them. ```bash for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done ``` -------------------------------- ### Add Docker Official APT Repository Source: https://github.com/frozengee/compose/blob/main/docker.md Configures the APT package manager to use Docker's official repository for Debian. This ensures that you install Docker from the official source. It dynamically determines the Debian version codename. ```bash echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \ $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null # 更新 sudo apt-get update ``` -------------------------------- ### New Green Union User ID and Group Information Source: https://github.com/frozengee/compose/blob/main/uid_gid.md Example output from the 'id link' command on a New Green Union NAS, showing the user's UID, primary GID ('admin'), and membership in 'users' and 'ughomeusers' groups. ```bash uid=1000(link) gid=10(admin) groups=10(admin),100(users),1000(user),133(ughomeusers) ``` -------------------------------- ### Test Jellyfin Hardware Transcoding (Docker) Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/02.香橙派5plus/README.md Execute this command within the Docker container to verify if the OpenCL runtime is functioning correctly for hardware acceleration. Replace 'jellyfin' with your container's name. ```bash docker exec -it jellyfin /usr/lib/jellyfin-ffmpeg/ffmpeg -v debug -init_hw_device rkmpp=rk -init_hw_device opencl=ocl@rk ``` -------------------------------- ### Configure Docker Registry Mirrors Source: https://github.com/frozengee/compose/blob/main/[10] Rockchip/README.md Sets up Docker to use specific registry mirrors for faster image pulls. This involves creating or overwriting the /etc/docker/daemon.json file. ```bash #- 终端命令添加 Docker 镜像加速 #- 以部分镜像加速为例 #- 以下是一整条命令,一起复制到终端运行 # 清空 /etc/docker/daemon.json 文件,准备写入新内容 echo >/etc/docker/daemon.json # 使用 cat 命令将以下内容写入 /etc/docker/daemon.json 文件 # 配置 Docker 镜像加速器,使用多个镜像源来提高镜像下载速度 cat >/etc/docker/daemon.json <