Docker commands
Instead of the container name, in most cases the first 2-3 digits of the container ID can
be specified, which is displayed using docker ps (depending on how many digits are
needed for unique identification).
-
List running containers:
docker ps -
Stop a running container “properly”
docker stop <CONTAINER-NAME> -
“Immediately kill” a running container:
docker kill <CONTAINER-NAME> -
Copy files out of a running container
docker cp <CONTAINER-NAME>:<PFAD-UND-DATEI> <ZIEL> -
oder into a running container:
docker cp <ZIEL> <CONTAINER-NAME>:<PFAD-UND-DATEI>