Has anyone managed to run wireguard through docker successfully?

  • I have been trying tirelessly to make wireguard run through a docker. I can connect using connmanctl fine, but I want to use docker which uses the conventional methods of connecting to wireguard. The reason I want to use it is because it comes with the pre made scripts for my vpn provider to use all the auth token create a wg0 etc etc.


    The bit I keep getting stuck at is in no matter what docker I try I get the following message:


    iptables-restore v1.8.8 (legacy): iptables-restore: unable to initialize table 'raw'

    Error occurred at line: 1


    I managed to get past this one by tinkering with the AllowedIps, but I cannot seem to get past this one:


    Code
    iptables v1.8.6 (legacy): Couldn't load match `mark':No such file or directory
  • I use docker linuxserver/wireguard in server mode with LibreELEC x86_64, and also in client mode with Ubuntu x86_64. For my CoreELEC arm devices I use 'entware wg-quick' because it allows me to easily access my DDNS server, which is difficult to do with 'connman'.

  • I think the biggest problem is I am using it on an ARM device which i gather are the bulk of my issues.