1 1
Franky66

OMV5 fresh installation with docker - docker network create failes

Recommended Posts

Hi there, I have just do a fresh install of armbian (Armbian_20.02.5_Odroidn2_buster_legacy_4.9.216) on odroid n2 and installed omv 5 via armbian softy tool.


Docker was installed via omv gui - omv extras - docker / portainer. When I now try to setup a separate network in docker / bridged mode I get the following error:


docker network create --driver=bridge --subnet=192.168.151.0/24 --gateway=192.168.151.1 home

Error response from daemon: Failed to program FILTER chain: iptables failed: iptables --wait -I FORWARD -o br-7a5194cdef64 -j DOCKER: iptables v1.8.2 (nf_tables): RULE_INSERT failed (Invalid argument): rule in chain FORWARD

(exit status 4)


Searching google doesn't find a possible solution. Anyone here that have a hint for this?

Share this post


Link to post
Share on other sites

The corresponding entry in syslog in long:

 

dockerd[3322]: time="2020-05-04T19:34:03.278587409+02:00" level=error msg="Handler for POST /v1.40/networks/create returned error: Failed to program FILTER chain: iptables failed: iptables --wait -I FORWARD -o br-c723c76c6721 -j DOCKER: iptables v1.8.2 (nf_tables):  RULE_INSERT failed (Invalid argument): rule
in chain FORWARD\n (exit status 4)"

Share this post


Link to post
Share on other sites

Yes I found one after a hint from another person. This is what I did in changing default iptables usage:

 

After changing iptables usage it worked:

 

Switching to the legacy version:

 

# update-alternatives --set iptables /usr/sbin/iptables-legacy

# update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy

# update-alternatives --set arptables /usr/sbin/arptables-legacy

# update-alternatives --set ebtables /usr/sbin/ebtables-legacy

 

Quote

I installed default installation of armbian image with 4.9er kernel and installing omv 5.0 with armbian softy tool. Then I installed docker via omv webpage. On default the new iptables nft is used which breaks using "docker network create ..." because it seems iptable nft is still not supported using docker.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
1 1