vscode-docker icon indicating copy to clipboard operation
vscode-docker copied to clipboard

Group Container by Label

Open ucheNkadiCode opened this issue 4 years ago • 1 comments

Description from @philliphoff "Suppose you were to add a Docker label "container-group" set to "", "", ..., "" to each set of related containers. For example, "container-group"="pj1" to each container belonging to project 1. Then suppose the Containers view had the ability to set grouping by "label", after which the user is prompted to enter/select a label (e.g. "container-group"). The view would then show a group of containers for every unique value for that label. E.g.: • pj1 o pj1-containerA o pj1-containerB • pj2 o pj2-containerA o pj2-containerB "

I support this idea as a way for users outside of a compose file to group their containers by simply adding a label. To make it simple, I think we should support the user selecting to group by either a label's key or by its value. That should give the user enough flexibility to label their containers accordingly.

ucheNkadiCode avatar Jan 11 '21 18:01 ucheNkadiCode

devdivcodingdays

"this is a test comment"

ucheNkadiCode avatar Jul 16 '21 20:07 ucheNkadiCode

This has now been released in Docker extension version 1.25.0.

alexyaang avatar Apr 17 '23 15:04 alexyaang