Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 606480 - app-emulation/docker-1.13.0_rc7 systemd unit file lacks "EnvironmentFile="
Summary: app-emulation/docker-1.13.0_rc7 systemd unit file lacks "EnvironmentFile="
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tianon
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-19 06:35 UTC by Brendan Horan
Modified: 2017-01-25 12:04 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 Brendan Horan 2017-01-19 06:35:27 UTC
The current unit file for app-emulation/docker lacks the config option "EnvironmentFile="

---
# grep Env /usr/lib64/systemd/system/docker.service  
#
---

 
The unit file needs to have :
---
EnvironmentFile=/etc/conf.d/docker
---
Comment 1 Manuel Rüger (RETIRED) gentoo-dev 2017-01-19 11:21:43 UTC
I recommend to use daemon.json to configure docker instead.
Comment 2 Brendan Horan 2017-01-24 01:22:43 UTC
(In reply to Manuel Rüger from comment #1)
> I recommend to use daemon.json to configure docker instead.

Fair point.
Then I assume "EnvironmentFile=/etc/docker/daemon.json" would be more correct ?
Comment 3 Manuel Rüger (RETIRED) gentoo-dev 2017-01-24 12:24:39 UTC
No that daemon.json is a config file for docker daemon, not for the init manager.
Comment 4 Brendan Horan 2017-01-24 15:27:45 UTC
(In reply to Manuel Rüger from comment #3)
> No that daemon.json is a config file for docker daemon, not for the init
> manager.

okies, but then what?
Do I just create the file under "/etc/docker" and pt my stuff there and be done?

if this is documented somewhere by all means point me at it :)
Comment 5 Tianon 2017-01-24 15:29:33 UTC
See https://docs.docker.com/engine/reference/commandline/dockerd/#/linux-configuration-file for some documentation about daemon.json -- at the high level, you setup that file, restart the daemon, and you're done. :)
Comment 6 Brendan Horan 2017-01-24 15:33:51 UTC
(In reply to Tianon from comment #5)
> See
> https://docs.docker.com/engine/reference/commandline/dockerd/#/linux-
> configuration-file for some documentation about daemon.json -- at the high
> level, you setup that file, restart the daemon, and you're done. :)

Got it mate... thanks.
Maybe I need a add some text to :
https://wiki.gentoo.org/wiki/Docker

Cos this confused me.
Happy to close the bug since there is no real issue right?

Some work on the Gentoo docs would be handy, I might look into that.
Comment 7 Brendan Horan 2017-01-25 12:04:35 UTC
Updated the doco on the wiki.
Should be fine.
Thanks all