thilojaeggi / WinGetty

An open source REST Backend for creating a private WinGet Repo without having to rely on cloud dependencies.

Home Page:https://wingetty.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IpTables error when starting WinGetty

LordPanduu opened this issue · comments

Describe the bug
When starting the Docker container with "docker-compose up -d" the following error is displayed after a few seconds:
Creating network "wingetty-main_default" with the default driver
ERROR: Failed to Setup IP tables: Unable to enable NAT rule: (iptables failed: iptables --wait -t nat -I POSTROUTING -s 172.18.0.0/16 ! -o br-9be1109a0643 -j MASQUERADE: iptables: Invalid argument. Run `dmesg' for more information.
(exit status 1))

If run again following error appears:
Creating network "wingetty-main_default" with the default driver
ERROR: Failed to Setup IP tables: Unable to enable NAT rule: (iptables failed: iptables --wait -t nat -I POSTROUTING -s 172.19.0.0/16 ! -o br-9689143a5182 -j MASQUERADE: iptables: No chain/target/match by that name.
(exit status 1))

To Reproduce
Steps to reproduce the behavior:

  1. Setup windows 2022 server and install WSL
  2. follow this turtorial: https://techcommunity.microsoft.com/t5/itops-talk-blog/using-wsl-2-on-windows-server-2022-to-run-linux-containers/ba-p/3624745
  3. Copy Wingetty folder to linux folder
  4. "docker-compose up -d"
  5. See error

Expected behavior
Notification that the WinGetty Container is up and running.

Screenshots
image

General Information:

  • OS: Windows Server 2022 21H2
  • WinGetty Version: latest

Update WSL to WSL version 2 with
image