mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 01:55:53 +03:00
[GH-ISSUE #103] modprobe error during startup of container #93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @haraldmeyer on GitHub (Nov 24, 2018).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/103
I loaded af_key before creating the container (using the current image). When starting the container I get the following in the log:
Any idea what the problem is? Is it related to af_key or something else?
@hwdsl2 commented on GitHub (Nov 25, 2018):
@haraldmeyer Hello! Make sure that you bind the /lib/modules directory in the “docker run” command, like this:
-v /lib/modules:/lib/modules:roThis is mentioned in the README.The modprobe error indicates that the container is unable to load the af_key kernel module, and this is typically caused by not binding the directory above, or the kernel modules that match your running kernel may be missing on your host under /lib/modules. You’ll need to reinstall your kernel if that is the case.
If you did successfully load the af_key module on the Docker host, however, you can try to connect a VPN client to test if it works.