我尝试使用wireguard docker镜像,但失败了

我尝试使用wireguard docker镜像,但失败了

我删除了VPS中的所有数据,并重新安装了新的Centos 7,并下载了最新的稳定内核源代码4.20并将其解压到源目录/usr/src,然后构建了它。内核和模块已成功构建,但是wireguard docker镜像不起作用

$ docker run --rm -it 
--name wireguard 
-v /etc/wireguard:/etc/wireguard 
-v /lib/modules:/lib/modules 
-v /usr/src:/usr/src:ro 
r.j3ss.co/wireguard:install
Unable to find image 'r.j3ss.co/wireguard:install' locally
install: Pulling from wireguard
cd784148e348: Pull complete
74376a61d579: Pull complete
dd348312c1df: Pull complete
bc712e2ba41a: Pull complete
Digest: 
sha256:375417a542a244537a92b60a9053ec5722c507dc38616b8f01c4e8333c56efa1
Status: Downloaded newer image for r.j3ss.co/wireguard:install
Building the wireguard kernel module...
CC [M] /wireguard/src/main.o
/bin/sh: scripts/basic/fixdep: not found
make[2]: *** [scripts/Makefile.build:292: /wireguard/src/main.o] Error 127
make[1]: *** [Makefile:1563: module/wireguard/src] Error 2
make: *** [Makefile:36: module] Error 2

$uname -r
4.20.3

知道吗?我做错了什么?

相关内容