mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-03 12:02:53 +00:00
1.0 KiB
1.0 KiB
Docker cheat sheet
List running containers
docker ps
List running containers of a docker-compose.yml
In the directory of the docker-compose.yml:
docker-compose ps
Restart container
$CONTAINERID from docker ps.
docker restart $CONTAINERID
Run program in container
$PROGRAM can be any program that is installed in the container bash, sh, node, curl...
docker exec -it $CONTAINERID $PROGRAM
Tidy system
This removes unused images, networks, ... from your system.
docker system prune
Please consult the Docker documentation for more information.