thilojaeggi / WinGetty

An open source REST Backend for creating a private WinGet Repo without having to rely on cloud dependencies.
https://wingetty.dev
GNU Affero General Public License v3.0
168 stars 15 forks source link

IpTables error when starting WinGetty #43

Closed LordPanduu closed 4 months ago

LordPanduu commented 4 months ago

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:

LordPanduu commented 4 months ago

Update WSL to WSL version 2 with image