MSNCodeSNIPPETS← msncode.dev
snippets/docker

Copy File to Container

Copy a file from host into a running container

dockerbashcpfile
BASH
docker cp ./file.txt <container>:/path/

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

Enter a Running Container

Get a shell inside a running Docker container

List Running Containers

Show all currently running Docker containers