MSNCodeSNIPPETS← msncode.dev
snippets/docker

Build Image with Tag

Build a Docker image with a custom name

dockerbashbuildtag
BASH
docker build -t myapp:latest .

More docker snippets

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

Enter a Running Container

Get a shell inside a running Docker container

List Running Containers

Show all currently running Docker containers