vscode-docker
vscode-docker copied to clipboard
Group Container by Label
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.
devdivcodingdays
"this is a test comment"
This has now been released in Docker extension version 1.25.0.