Shibalba
Shibalba

Reputation: 11

Dockerfile wireguard kernel issue

Trying to run a decentralized vpn inside of a docker image. The issue im running to I think has to do with my running and installed kernels are different. I have to run modprobe wireguard in my docker file and its returning modprobe: FATAL: Module wireguard not found in directory /lib/modules/5.10.25-linuxkit I know the issue is related to the running kernels but im not sure what the fix would be. Heres my current Dockerfile.

FROM ubuntu:20.04

USER root

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y \
    git \
    gcc \
    make \
    musl-dev \
    unbound \
    libtool \
    g++ \
    file \
    automake \
    autoconf \
    libssl-dev \
    libexpat-dev \
    bison \
    systemd \
    iproute2 \
    sudo \
    wireguard-tools

RUN systemctl enable systemd-resolved

COPY . /sentinelnode /bin/

COPY . /.sentinelnode /root/

COPY . /hnsd /bin/

RUN chmod +x /bin/sentinelnode

RUN chmod +x /bin/hnsd

RUN sudo modprobe wireguard

RUN cd $HOME

CMD sentinelnode start

Upvotes: 1

Views: 718

Answers (0)

Related Questions