[GH-ISSUE #111] 为何要挂载系统盘的 /lib/modules #100

Closed
opened 2026-03-02 07:27:38 +03:00 by kerem · 1 comment
Owner

Originally created by @droplet-js on GitHub (Dec 30, 2018).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/111

这似乎有点问题,docker镜像是基于debian,而安装docker镜像的系统可以是mac os、centos等非debian系统。可以不挂载系统盘的 /lib/modules 吗?

Originally created by @droplet-js on GitHub (Dec 30, 2018). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/111 这似乎有点问题,docker镜像是基于debian,而安装docker镜像的系统可以是mac os、centos等非debian系统。可以不挂载系统盘的 /lib/modules 吗?
kerem closed this issue 2026-03-02 07:27:42 +03:00
Author
Owner

@hwdsl2 commented on GitHub (Dec 30, 2018):

@v7lin 你好!不支持在非 Linux 系统上使用这个 Docker 镜像。关于你的问题,如果你在 Docker host 上运行了 sudo modprobe af_key,则可以不挂载 /lib/modules 目录。挂载它是为了在 Ubuntu/Debian 系统上省去这一步而从容器内部载入该模块。

<!-- gh-comment-id:450538678 --> @hwdsl2 commented on GitHub (Dec 30, 2018): @v7lin 你好!不支持在非 Linux 系统上使用这个 Docker 镜像。关于你的问题,如果你在 Docker host 上运行了 `sudo modprobe af_key`,则可以不挂载 `/lib/modules` 目录。挂载它是为了在 Ubuntu/Debian 系统上省去这一步而从容器内部载入该模块。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-ipsec-vpn-server#100
No description provided.