I’ve noticed lately when working with Dev Containers a lot that most of the time that they’re not stopping the container when I close VS Code.

Here’s a handy snippet to find all the Dev Containers on your machine using the Docker CLI

docker ps -a --filter="label=dev.containers.id" --format "table {{.ID}}\t{{.Status}}\t{{.Image}}\t{{.Label \"devcontainer.local_folder\"}}"



If you found this content helpful, please consider sponsoring me on GitHub or alternatively buying me a coffee