Ensure graphdriver only loads with experimental flag#28623
Ensure graphdriver only loads with experimental flag#28623vdemeester merged 1 commit intomoby:masterfrom
Conversation
thaJeztah
left a comment
There was a problem hiding this comment.
Thanks! Left some comments
Also /cc @mstanleyjones because I think in the new docs, every page has to be added to the menu manually
docs/extend/plugins_graphdriver.md
Outdated
There was a problem hiding this comment.
Forgot to remove "Experimental:" from the title
There was a problem hiding this comment.
Also, there should be metadata added for the docs (easiest to take other documents from the docker.github.io repo as example)
There was a problem hiding this comment.
What do you mean about metadata added? In the docs repo we will need to add a TOC reference for this file, but I don't understand what else you mean...
There was a problem hiding this comment.
@mstanleyjones oh, the metadata was added (I couldn't comment on the line where the change had to be made 😄)
docs/extend/plugins_graphdriver.md
Outdated
There was a problem hiding this comment.
Should be no trailing comma here
docs/extend/plugins_graphdriver.md
Outdated
There was a problem hiding this comment.
Can you add a json language hint to the fence here, and for other JSON examples?
7bc918f to
d499304
Compare
docs/extend/plugins_graphdriver.md
Outdated
There was a problem hiding this comment.
nit: we need a , in the end of this line
docs/extend/plugins_graphdriver.md
Outdated
docs/extend/plugins_graphdriver.md
Outdated
thaJeztah
left a comment
There was a problem hiding this comment.
found some more missing commas
docs/extend/plugins_graphdriver.md
Outdated
docs/extend/plugins_graphdriver.md
Outdated
docs/extend/plugins_graphdriver.md
Outdated
d499304 to
4a29a85
Compare
|
This is updated with comma changes. |
docs/extend/plugins_graphdriver.md
Outdated
There was a problem hiding this comment.
What do you mean about metadata added? In the docs repo we will need to add a TOC reference for this file, but I don't understand what else you mean...
docs/extend/plugins_graphdriver.md
Outdated
There was a problem hiding this comment.
This is an awkward wording. I don't really understand what it is talking about; Is there a driver back-end that has to be running before Docker Engine can be started?
There was a problem hiding this comment.
I agree, I had trouble phrasing it... basically this:
$ docker plugin install myGraphDriver
$ docker plugin enable myGraphDriver
$ pkill dockerd
$ dockerd -s myGraphDriver
The daemon has to be started with the graphdriver that it is going to use. You can't use a graphdriver plugin unless the plugin is enabled before you restart the daemon.
There was a problem hiding this comment.
How about "You need to install and enable the plugin and then restart the Docker daemon before using the plugin. See the following example for the correct ordering of steps." followed by your 4-line code block?
docs/extend/plugins_graphdriver.md
Outdated
There was a problem hiding this comment.
All of this passive voice makes this hard to understand. Maybe something like "The array of option is passed through to the plugin, but the plugin is not required to parse or honor them."
docs/extend/plugins_graphdriver.md
Outdated
There was a problem hiding this comment.
How about something like:
The response also includes a list of UID and GID mappings, structured as follows:
docs/extend/plugins_graphdriver.md
Outdated
There was a problem hiding this comment.
Maybe something like:
If Parent is an empty string, there is no parent layer.
StoreOpt is a map of strings which indicate storage options.
docs/extend/plugins_graphdriver.md
Outdated
docs/extend/plugins_graphdriver.md
Outdated
There was a problem hiding this comment.
If Parent is an empty string, there is no parent.
4a29a85 to
96b0c31
Compare
|
Adding |
|
@cpuguy83 if it remains experimental, you can add |
|
@thaJeztah Think I've worked out all the issues in any case, just blocked by #26398 at the moment. |
|
Any thoughts on my suggestions above? |
|
@mstanleyjones 👍 to the suggestions. I'll get them in. |
96b0c31 to
8a743a6
Compare
|
Ok, this is updated. ping @anusha-ragunathan |
3107b4e to
dbcf0e1
Compare
|
ping @tiborvass @aaronlehmann |
|
LGTM |
daemon/graphdriver/plugin.go
Outdated
There was a problem hiding this comment.
I would add "graphdriver plugins are only..." just to be extra clear.
docs/extend/plugins_graphdriver.md
Outdated
There was a problem hiding this comment.
dockerd --experimental -s ...
There was a problem hiding this comment.
Lets make the testRequires an ExperimentalDaemon instead. Easier to switch to stable, when its supported.
There was a problem hiding this comment.
testRequires(ExperimentalDaemon) instead?
There was a problem hiding this comment.
Also, not sure why this test is affected?
There was a problem hiding this comment.
Actually, setupTest already sets up an ExperimentalDaemon. So this should not be necessary.
There was a problem hiding this comment.
I think I ran into this because in order for this test to work for me, I have to manually run the make script (whereas I normally have a helper bash function) and I didn't set DOCKER_EXPERIMENTAL=1 in doing so.
Looks good to remove this when setup properly ;)
Also updates some of the structures being sent so plugins are getting all the new options. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
dbcf0e1 to
677fa03
Compare
|
Updated |
|
LGTM |
|
Windows CI failed because a Jenkins issue, so i restarted. I'm moving this to "merge", because it has two LGTM's, and I see misty's suggestions were addressed |
Also updates some of the structures being sent so plugins are getting
all the new options.
ping @thaJeztah