Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iptables Error #250

Closed
mikeleord opened this issue Mar 10, 2024 · 3 comments
Closed

iptables Error #250

mikeleord opened this issue Mar 10, 2024 · 3 comments

Comments

@mikeleord
Copy link

Hello,
via portainer I used this Docker Compose:

version: "3"
services:
  windows:
    image: dockurr/windows
    container_name: windows
    devices:
      - /dev/kvm
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
      - 3389:3389/tcp
      - 3389:3389/udp
    stop_grace_period: 2m
    restart: on-failure
    environment:
      VERSION: "win10"
      RAM_SIZE: "4G"
      CPU_CORES: "2"
      DISK_SIZE: "32G"
      MANUAL: "Y"
    volumes:
      - /docker/win:/storage

but i get this error:

iptables v1.8.10 (legacy): can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
❯ ERROR: Status 3 while: iptables -t nat -A POSTROUTING -o "$VM_NET_DEV" -j MASQUERADE (line 178/301)
❯ Starting Windows for Docker v2.04...
❯ For support visit https://github.com/dockur/windows

what can I verify?
Thank you

@banyet1
Copy link

banyet1 commented Mar 11, 2024

sudo modprobe ip_tables
sudo modprobe iptable_nat

Should work.

@kroese
Copy link
Contributor

kroese commented Mar 12, 2024

If you don't need network access in the machine, for example you just need to test some Windows app, you can now also disable the network in the latest version (v2.06):

environment:
  NETWORK: "N"

That will also work around that the iptables error.

@mikeleord
Copy link
Author

mikeleord commented Mar 12, 2024

thanks @banyet1 and @kroese you everything works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants