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:
- Setup windows 2022 server and install WSL
- 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
- Copy Wingetty folder to linux folder
- "docker-compose up -d"
- 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