-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Allow to change the path where the plugins are loaded from. #13514
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
Conversation
|
oh man... I'd punt on this. Don't see why anyone would really need to customize this other than "look ma, I can customize things". |
|
@cpuguy83 I totally agree with you, but I'm sure if we don't do it someone else will. To be clear, I'm okay with closing this PR and forgetting about it. |
|
@cpuguy83 I just thought about a case where we'll want to change this, windows 😉 Moving forward with this after a rebase. |
|
@calavera In that case it's just a constant set in an _windows.go file :) |
|
that's very true. |
|
Not sure about this either; is there an actual use case already? If not, then I wonder if we should add it just because it may become handy. Just my 0.02 |
|
Okay, I'm sold, closing this PR. |
|
Reopening this because of #13859 |
30e0fd4 to
63a8286
Compare
|
Maybe we should make /var/lib/docker default? :) |
|
For my normal testing, I start the Docker daemon with rather than hard coding the default to however, I then note another pain point - the plugin API does not communicate daemon settings to it - so it doesn't know that in this case, it should probably make the the mounts in tbh, I'm hoping the daemon can pass on some more client oriented info too, but that may be pushing it :) |
|
@SvenDowideit it cannot go into |
89a50a7 to
53b15a3
Compare
|
Also, keep in mind that |
Signed-off-by: David Calavera <[email protected]>
53b15a3 to
afd30da
Compare
|
Based on the plugins docs it seems that the plugins are either a unix socket or a spec file pointing to a unix socket (why not a symlink?). The accepted pattern for IPC unix sockets is to put them into /run/. So, I would suggest that the plugins be a combination of three locations: /run/docker/plugins And have an inheritance order where /run overrides /etc and /etc overrides /usr on name collision. I would also suggest that both /etc and /usr only be allowed to contain spec files. |
|
cc @icecrime |
|
Sounds legit to me. |
|
Sounds like a good idea to me too, I'll make the changes here and update the title to reflect that. |
|
Closing. I'm going to start over in a new pull request. |
This patch allows to set the plugins root at the deamon level.
I'm not super happy about the implementation, so all your feedback will be very welcome.
Signed-off-by: David Calavera [email protected]