You are not logged in.

#1 2020-06-19 14:06:01

ThePiloot
Member
Registered: 2020-06-19
Posts: 2

[SOLVED] docker-compose up iptables unknown option "--dport"

hey,

I want to run a few servers whit docker-compose, but i get a error.
I think this hes noting to do wit the servers it self, but moor whit my one os or configs and especially whit iptables or maybe whit my docker demon.
(/etc/docker/daemon.jso is blank)

[root@jordiarchpc PwnAdventure3]# docker-compose build
master uses an image, skipping
game uses an image, skipping
Building init
Step 1/7 : FROM ubuntu:14.04
 ---> 6e4f1fe62ff1
Step 2/7 : RUN apt-get update && apt-get install -y   vim   postgresql
 ---> Using cache
 ---> 8bfae01c3d35
Step 3/7 : EXPOSE 5432
 ---> Using cache
 ---> ef15240ad189
Step 4/7 : ENV PWN3=/opt/pwn3
 ---> Using cache
 ---> 152abba71fd1
Step 5/7 : RUN useradd -ms /bin/bash pwn3
 ---> Using cache
 ---> b879727fcd8b
Step 6/7 : ADD --chown=pwn3 server/MasterServer/initdb.sql $PWN3/initdb.sql
 ---> Using cache
 ---> 5638e0466849
Step 7/7 : ADD --chown=pwn3 setup $PWN3/setup
 ---> Using cache
 ---> f235a4e25fe3
Successfully built f235a4e25fe3
Successfully tagged pwn3server:latest
[root@jordiarchpc PwnAdventure3]# docker-compose up   
Creating pwnadventure3_init_1 ... done
Creating pwnadventure3_master_1 ... 
Creating pwnadventure3_master_1 ... error

ERROR: for pwnadventure3_master_1  Cannot start service master: driver failed programming external connectivity on endpoint pwnadventure3_master_1 (3c49a4454da7266528114d9d129eaa8ec72dfe712d8bd5774923a90beda97f98):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 3333 -j DNAT --to-destination 172.18.0.3:3333 ! -i br-ea46b2dbe54f: iptables v1.8.5 (legacy): unknown option "--dport"
Try `iptables -h' or 'iptables --help' for more information.
 (exit status 2))

ERROR: for master  Cannot start service master: driver failed programming external connectivity on endpoint pwnadventure3_master_1 (3c49a4454da7266528114d9d129eaa8ec72dfe712d8bd5774923a90beda97f98):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 3333 -j DNAT --to-destination 172.18.0.3:3333 ! -i br-ea46b2dbe54f: iptables v1.8.5 (legacy): unknown option "--dport"
Try `iptables -h' or 'iptables --help' for more information.
 (exit status 2))
ERROR: Encountered errors while bringing up the project.
[root@jordiarchpc PwnAdventure3]# 



GitHub docker container:  https://github.com/LiveOverflow/PwnAdventure3.git

Last edited by ThePiloot (2020-06-26 11:46:56)

Offline

#2 2020-06-25 19:14:33

keyfour
Member
Registered: 2020-06-25
Posts: 1

Re: [SOLVED] docker-compose up iptables unknown option "--dport"

Try to install iptables-nft instead of iptables (legacy) and do reboot .

Offline

#3 2020-06-26 11:48:34

ThePiloot
Member
Registered: 2020-06-19
Posts: 2

Re: [SOLVED] docker-compose up iptables unknown option "--dport"

thank you very much

Offline

Board footer

Powered by FluxBB