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

Hide specific containers or docker compose groups in container explorer

Open EdyTheCow opened this issue 1 year ago • 3 comments

I am selfhosting vscode via a code-server running in a docker container. I have succesfully setup docker extension inside docker container running code-server. The container explorer window shows all of the containers running on the host which I guess is the whole point.

However, is it possible to hide certain docker compose groups or specific containers from the container explorer view? The explorer view is cluttered with containers running various other things (including code-server) that are not important for developement purposes. The only option I could find is sorting the containers by name, compose group, etc.

If such a feature doesn't exist already, I am sure it may be useful for others with similar setups. Simple blacklist with container names or compose groups names that hides containers in container explorer would be ideal.

EdyTheCow avatar Aug 14 '22 07:08 EdyTheCow

I'll put on the "feature" label since there is not currently a way to do this. VSCode does have a way to filter tree views (select a tree view, hit Ctrl+F, and then hit the filter icon), but it won't persist across restarts and isn't quite what you're looking for.

image

bwateratmsft avatar Aug 15 '22 13:08 bwateratmsft

I think container/image/etc. labels would be a good way to implement this.

bwateratmsft avatar Aug 15 '22 15:08 bwateratmsft

I think container/image/etc. labels would be a good way to implement this.

Didn't even think of that, that would be perfect!

EdyTheCow avatar Aug 15 '22 15:08 EdyTheCow