Start, stop, or restart a Container
docker stop mein_container_name
docker start mein_container_name
docker restart mein_container_name
Delete a Container
To delete a stopped container, use:
docker rm container_id_or_name
To delete a running container, use:
docker rm -f container_id_or_name
To delete all stopped containers you can use:
docker container prune
Show Container
docker ps -a
-a
alle Container (laufende und gestoppte) anzeigen
Show Docker-Logs
docker logs container_id_or_name
Accessing a Docker container
docker exec -it container_id_or_name
Monitor Container Memory and CPU Usage
docker stats