Suppressing image digest in docker ps#30848
Conversation
|
Ping @thaJeztah @cpuguy83 |
cli/command/formatter/container.go
Outdated
cli/command/formatter/container.go
Outdated
There was a problem hiding this comment.
Suggest else if instead of nested else and if
There was a problem hiding this comment.
Actually, this check is not needed. ParseNormalizedNamed returns a reference.Named.
There was a problem hiding this comment.
@aaronlehmann you're right, I removed the check.
7b03e8a to
4dc55db
Compare
cli/command/formatter/container.go
Outdated
There was a problem hiding this comment.
Thinking about this some more, I'm not sure we want to discard the digest in this case.
It makes sense for the digest+tag case, because the digest is primarily internal information that doesn't need to clutter the output.
But if there's only a digest, it feels like it might be misleading to only show the name.
Not sure what others think. If there's a good UX reason to never show digests here, I guess it's okay.
There was a problem hiding this comment.
@aaronlehmann I see your point. Although, given that --no-trunc exists, it's not the case that there's no way to easily retrieve full information. Wouldn't the same reasoning apply to service ps/ls too? Anyhow, I'm happy to discuss the UX implications of this. Not sure who else to tag here.
(My personal opinion is that I find it cleaner to not have to look at digests unless I specifically ask for them. @cpuguy83 indicated the same earlier. This also came up in another issue that I can't find right now.)
There was a problem hiding this comment.
That's fair, given that --no-trunc exists removing digests by default might be reasonable.
@cpuguy83: Any thoughts?
There was a problem hiding this comment.
Yeah I see the digest as an ID, which is generally undesirable in ps unless that's exactly what was specified.
There was a problem hiding this comment.
And even if I did specify it... digest is really big for docker ps.
There was a problem hiding this comment.
I think it makes sense to omit it (alternatively, truncate the output, but we don't have a fixed length defined for these)
|
LGTM |
|
|
Really strange... |
|
My master works, this PR is not. |
|
It needs to be rebased. |
Signed-off-by: Nishant Totla <nishanttotla@gmail.com>
4dc55db to
b04536f
Compare
|
@cpuguy83 @aaronlehmann I just rebased this PR. |
|
Thanks! |
|
windows failure unrelated 😓 |
…r-ps Suppressing image digest in docker ps
Signed-off-by: Nishant Totla nishanttotla@gmail.com
This PR suppresses digest in
docker ps, requiring the use of--no-truncif digest is to be seen.Without
--no-truncWith
--no-truncThis follows up from #28539 to make behavior consistent with
service ls/ps.