Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 756862 - app-emulation/docker Add dependency for firewall in /etc/init.d/docker
Summary: app-emulation/docker Add dependency for firewall in /etc/init.d/docker
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-26 16:56 UTC by Dan Johansson
Modified: 2021-01-05 16:07 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Johansson 2020-11-26 16:56:42 UTC
Today after a reboot my docker container refused to start.
After some research I found a post in internet that said "start your firewall before docker". After looking at my logs I could see that docker was started before my firewall.
So, if you could include:

depend() {
        after firewall
}

in /etc/init.d/docker it would be great.
(I have added it locally here).

Regards,
Dan



Reproducible: Always

Steps to Reproduce:
1. Reboot host

Actual Results:  
"docker start XY" complains that the container could not be started (iptables errors, No chain/target/match by that name).
Comment 1 William Hubbs gentoo-dev 2021-01-05 16:07:21 UTC
There is not a standard service script that starts a firewall, so there
is no way for me to request something like that upstream.

Also, I don't recommend adding this to the depend function directly.

Instead, you can add an rc_after line to /etc/conf.d/docker like this to
set the order.

rc_after="firewall"

Let me know whether or not that works for you.

Thanks much.