cheatsheet_-_comandos_mas_comunes
This is an old revision of the document!
Docker, docker-compose cheatsheet
Correr contenedor
Reiniciar contenedor
Detener contenedor
send SIGTERM: docker stop [container name or id] send SIGKILL docker kill [container name or id]
Obtener información de un contenedor
docker inspect [container name or id]
Obtener regiostros de un contenedor
--tail 100 -f
Copiar archivos desde/hacia un contenedor
Hay algunas sutilezas. Ver el manual.
docker cp [container name or id]:/path/to/internal/file /path/to/external/file
docker exec
docker exec -i, --interactive # stdin -t, --tty # interactive example: docker exec -it mariadb /bin/bash
docker stats
docker ls
docker networks ls
list images
prune
docker-compose bindings:
docker-compose restart:
cheatsheet_-_comandos_mas_comunes.1643562213.txt.gz · Last modified: 2024/10/17 21:42 (external edit)
