New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create the systemd.service for Debian which respects /etc/default/docker #12134
Conversation
Can you please sign your commits following these rules: https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work The easiest way to do this is to amend the last commit: $ git clone -b "master" git@github.com:onorua/docker.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f This will update the existing PR, so you do not need to open a new one. |
Signed-off-by: Yaroslav Molochko <onorua@gmail.com>
@@ -0,0 +1,3 @@ | |||
Lokesh Mandvekar <lsm5@fedoraproject.org> (@lsm5) | |||
Brandon Philips <brandon.philips@coreos.com> (@philips) | |||
Jessie Frazelle <jess@docker.com> (@jfrazelle) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did this change?
wait, why cant we use the one we already have? do we need another? I think it should be a 1 line change |
Actually you are right, if the file doesn't exists it will not read anything and make ENV variable empty, which is exactly what we need. |
Signed-off-by: Yaroslav Molocko <onorua@gmail.com>
No, this should be done as a drop-in by Debian. See the .d files in Example 2 here: http://www.freedesktop.org/software/systemd/man/systemd.unit.html#Examples |
What if user did not install "docker.io" package from debian repository but from get.docker.com repository? |
-1 if we want to keep this file distro-agnostic. I had #7220 nack-ed which used @philips RE: drop-ins, I guess chances are high a stale drop-in could end up confusing the user (correct me if I'm wrong) |
That is why I've created systemd-debian in a first place, to make debian specific version of the file. Should I revet my changes to that debian specific systemd folder? |
I'm ok with having separate dirs per distro (hoping we don't end up with far too many), upto the others to ack/nack this. |
I feel like this could be fixed w the drop in and tianons patch to have On Thursday, April 9, 2015, Lokesh Mandvekar notifications@github.com
|
I definitely agree that what's solved by these files is more appropriately solved here via drop-ins (and systemd upstream prefers that method). Here's another kink with the
(ie, the syntax for |
So, as far as I undertood I need to reject/cancel this PR and create a new request to Debian maintainer of docker? Or there is something I can do here? |
I think what we need is a PR that will go in after On Fri, Apr 10, 2015 at 11:16 AM, onorua notifications@github.com wrote:
|
Well, even still, I'm personally -1 on this in general, both because the
_usage_ of "/etc/default/docker" is different (as I explained above) and
because systemd upstream recommends drop-ins for the types of changes one
would previously use "/etc/default/docker" for (such as modifying the
daemon startup parameters).
|
oh damn ya so then nm sorry On Fri, Apr 10, 2015 at 11:31 AM, Tianon Gravi notifications@github.com
|
I totally agree with you to go mainstream drop-in approach. I just really worry that somebody will update system, and let say storage engine got overwritten to default one, which means: |
as an aside it is really annoying that you cannot append args via drop-ins. You can only rely on environment variable replacement and replace the whole thing but there is no way to layer-on appends. |
closing as I believe we can prevent broken systems with @vbatts patch that was merged to see if they are not using the same graph driver as before, and I think debian users will know these things are going to happen and they are pretty smart in figuring out how to migrate, this will surely not be the only init script on their system I do not think we need to hold their hand |
As you might already know, Debian 8 will migrate to systemd, most of the users used to change configuration parameters inside the /etc/default/docker. In order to release a pain of migration, I propose to have docker.service which respects /etc/default/docker configuration options.