概述
Docker allows you to run Linux applications in isolated environments known as "containers." On Unraid, Docker is the ideal method for deploying and managing a wide variety of applications without concerns about compatibility or system conflicts. This approach transforms your Unraid server into a flexible application server, enabling you to run popular apps like Plex, Home Assistant, and many more directly on your system.
如果您想了解有关 Docker 基础技术或探索高级用法的更多信息,请查看官方 Docker 文档。
Unraid 如何使用 Docker
Unraid 的 Docker 集成旨在便于所有人使用。每个应用程序都在其自己的容器中运行,确保更新或更改不会影响 Unraid 操作系统或其他应用程序。Unraid 使用一个专门的 appdata
共享来存储每个容器的设置和工作文件,这样可以使您的应用程序数据井然有序,并简化备份和迁移。
深入了解: 展开以了解更多关于 Docker 容器在 Unraid 上的实现
Unraid 使用 Docker 创建独立的环境来运行基于 Linux 的应用程序。每个 Docker 容器独立于 Unraid 操作系统和其他容器运行,这增强了稳定性和兼容性。
实现详情
-
Storage: All the data and programs for each container are stored in a single virtual disk image file called
docker.img
. By default, this file is found in thesystem
user share, which usually utilizes the cache pool for better speed. -
文件系统:
docker.img
文件使用 BTRFS 文件系统,并由 Unraid 内部挂载。如需更多关于文件系统的信息,请参见 文件系统。 -
配置: 当您设置一个容器时,Unraid 会将您的配置保存为一个闪存驱动器上的 VM XML 模板。这样可以轻松地用您偏好的设置重新安装或恢复容器。
-
模板:许多热门容器都附带现成的模板,使初始设置不那么复杂。
-
Performance: It’s a good idea to store
docker.img
on the cache pool (if you have one) for the best performance. -
限制: Unraid 原生不支持 Docker Compose。对于更复杂的设置,请查看 官方 Docker Compose 文档。
提示大多数用户不需要直接与
docker.img
文件进行交互。然而,了解它的角色可以有助于故障排除或理解日志消息。
社区应用程序(插件)
The Community Applications plugin is the easiest and most popular way to discover, install, and manage both Docker containers and plugins on your Unraid server. It provides an app store-like experience directly in the Unraid WebGUI, making it simple to browse and deploy a wide range of community-maintained applications.
有关安装和使用社区应用程序插件的完整指南,包括高级功能和疑难解答,请查看社区应用程序。
- 社区应用程序中的大多数容器由更广泛的 Unraid 和 Docker 社区维护。
- 若要获取特定容器的帮助,请查看其文档或 应用程序 标签中链接的支持线程。
- Lime Technology 提供 Docker 子系统本身的支持,但不支持单个社区容器。