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
Add mounts to docker ps. #20017
Add mounts to docker ps. #20017
Conversation
77e0617
to
d7450cd
Compare
d7450cd
to
cf32be2
Compare
ping @duglin I think this is something you were looking for? |
compiling this (not rebasing) I see:
|
rebase needed |
ping @calavera can you rebase this? |
will do when we decide whether we want this change or not. There is no point to rebase before docker/engine-api#85 is merged, from my point of view. |
cf32be2
to
864cc2f
Compare
I've rebased with master and vendored engine-api already. I also added documentation for the new filter and format. |
Can you add a note to the API changes; https://github.com/docker/docker/blob/master/docs/reference/api/docker_remote_api.md#v123-api-changes |
864cc2f
to
cf50592
Compare
@thaJeztah done, thanks for the reminder. |
windowsTP4 failure is real - needs to have conditional code for Windows file path semantics. Also rather than running busybox top in the test, use runSleepingContainer.
|
@@ -184,6 +195,10 @@ Query Parameters: | |||
- `status=`(`created`|`restarting`|`running`|`paused`|`exited`|`dead`) | |||
- `label=key` or `label="key=value"` of a container label | |||
- `isolation=`(`default`|`process`|`hyperv`) (Windows daemon only) | |||
- `ancestor`=(`<image-name>[:<tag>]`, `<image id>` or `<image@digest>`) | |||
- `before`=(container's id or name) |
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.
minor thing, but for consistency, should these use < >
, e.g. <container id>
instead of "container's id" since you're using <image id>
above?
one minor request on the test, but aside from that LGTM |
@duglin I've addressed your comments. @jhowardmsft ❤️ to know that when I break windows support the tests fail horribly 🙌 |
@calavera thanks! Still LGTM assuming janky is happy |
@calavera Looks like it's still broken, sorry!
|
@jhowardmsft yeah, I'm doing some changes and I'll push an update shortly. |
1cabb83
to
821f3f6
Compare
https://jenkins.dockerproject.org/job/Docker-PRs-WoW-TP4/1250/console
🎉 |
821f3f6
to
5db6d74
Compare
@calavera Neat. LGTM from the Windows side. (I would have seen your message earlier if it wasn't for Gordon spamming my inbox and hiding 'real' messages 😈) |
LGTM moving to doc review |
- Allow to filter containers by volume with `--filter volume=name` and `filter volume=/dest`. - Show their names in the list with the custom format `{{ .Mounts }}`. Signed-off-by: David Calavera <david.calavera@gmail.com>
5db6d74
to
bd4fb00
Compare
@thaJeztah, @vdemeester, @MHBauer can I have the docs reviewed here? |
@@ -142,6 +143,20 @@ func (c *containerContext) Label(name string) string { | |||
return c.c.Labels[name] | |||
} | |||
|
|||
func (c *containerContext) Mounts() string { |
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.
as a Capitalize Exported function, doesn't this need a comment? Shouldn't one of the validate passes catch this? Am I mistaken?
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.
The function is exported because Go's template engine requires to export them, but the struct is not exported, so nobody else can really use it.
Only extra doc I could think of is the cli helptext, but that doesn't mention any specific filters at all. I think you're good for docs. |
oh! thought I reviewed this, lol. yup, docs LGTM (thanks for the ping @calavera) |
@MHBauer is that a 'lgtm'? |
LGTM 🦁 |
LGTM |
Janky, Experimental and WindowsTP4 is green, other CI is having lots of issues, so let's merge |
--filter volume=name
andfilter volume=/dest
.{{ .Mounts }}
.This is consistent with the Network information we added recently.
Signed-off-by: David Calavera david.calavera@gmail.com