Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 589150 - app-containers/docker: add iptables USE flag
Summary: app-containers/docker: add iptables USE flag
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-19 13:17 UTC by Daniel Maxime
Modified: 2022-04-15 22:01 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
docker-1.12.0_rc4-r2.ebuild (docker-1.12.0_rc4-r2.ebuild,7.49 KB, text/plain)
2016-07-19 13:18 UTC, Daniel Maxime
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Maxime 2016-07-19 13:17:10 UTC
This is an ebuild forked from the last version, adding "iptables" USE flag. Docker can works without iptables and (for me), I only use nftables.

This ebuild makes iptables dependancy optional.
Note: you need to add "--iptables=false --ip-masq=false" to dockerd options to make it run of course (if iptables binary is not found)

Reproducible: Always
Comment 1 Daniel Maxime 2016-07-19 13:18:55 UTC
Created attachment 441094 [details]
docker-1.12.0_rc4-r2.ebuild

add "iptables" USE flag
Comment 2 William Hubbs gentoo-dev 2016-07-28 17:21:00 UTC
If Docker uses or detects iptables during the build process this
patch is correct.

If not, the patch should just be an addition to pkg_postinst something
like:

if ! has_version 'net-firewall/iptables'; then
	elog "You may want to install iptables for blah blah functionality"
fi
Comment 3 Guilherme Amadio gentoo-dev 2020-05-07 10:08:09 UTC
Docker is not working without /sbin/iptables for me. I had to create a symlink for /sbin/iptables -> /sbin/xtables-legacy-multi by hand so that docker daemon would start.
Comment 4 William Hubbs gentoo-dev 2022-04-15 22:01:27 UTC
I looked into this, and in the current versions of docker, iptables is a
hard requirement, so I can't make it optional.