MSNCodeSNIPPETS← msncode.dev
snippets/docker

Enter a Running Container

Get a shell inside a running Docker container

dockerbashexecshell
BASH
docker exec -it <container> bash

More docker snippets

Build Image with Tag

Build a Docker image with a custom name

Clean Everything (Dangling + Stopped)

Remove stopped containers, dangling images, and unused networks

Copy File to Container

Copy a file from host into a running container

List Running Containers

Show all currently running Docker containers