cheatsheet_-_comandos_mas_comunes
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| cheatsheet_-_comandos_mas_comunes [2022/01/30 16:31] – created oso | cheatsheet_-_comandos_mas_comunes [2024/10/17 21:42] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Docker, docker-compose cheatsheet ====== | ====== Docker, docker-compose cheatsheet ====== | ||
| - | start | + | === Correr contenedor === |
| - | stop | + | === Reiniciar contenedor === |
| - | restart | + | === Detener contenedor === |
| + | < | ||
| + | send SIGTERM: | ||
| + | docker stop [container name or id] | ||
| - | inspect | + | send SIGKILL |
| + | docker kill [container name or id] | ||
| - | logs | + | </ |
| - | cp | + | === Obtener información de un contenedor === |
| + | < | ||
| + | docker inspect [container name or id] | ||
| + | </ | ||
| - | exec | + | === Obtener regiostros de un contenedor === |
| + | < | ||
| + | --tail 100 | ||
| + | -f | ||
| + | </ | ||
| - | stats | + | === Copiar archivos desde/hacia un contenedor === |
| + | Hay algunas sutilezas. [[https:// | ||
| + | < | ||
| + | docker cp [container name or id]:/ | ||
| + | </ | ||
| + | |||
| + | '' | ||
| + | < | ||
| + | docker exec | ||
| + | -i, --interactive | ||
| + | -t, --tty # interactive | ||
| + | |||
| + | example: | ||
| + | docker exec -it mariadb /bin/bash | ||
| + | </ | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | docker networks ls | ||
| + | |||
| + | list images | ||
| prune | prune | ||
cheatsheet_-_comandos_mas_comunes.1643560280.txt.gz · Last modified: 2024/10/17 21:42 (external edit)
