Skip to content

Commit

Permalink
Merge pull request #90 from youhide/master
Browse files Browse the repository at this point in the history
Update comandos_uteis.md and gitbook configs
  • Loading branch information
somatorio authored Mar 21, 2023
2 parents fe31209 + bd214be commit 23c5ac1
Show file tree
Hide file tree
Showing 4 changed files with 5,735 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ _book

# NPM
npm-debug.log

# Generic
.DS_Store
4 changes: 3 additions & 1 deletion manuscript/comandos_uteis.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ Seguem alguns comandos úteis e simples abaixo:

- Remover todos os contêineres sem uso
`docker container prune`
- Remover tudo
`docker system prune -a`
- Parar todos os containers
`docker stop $(docker ps -q)`
- Remover todas as imagens locais
`docker image prune`
- Remove volumes "órfãos"
`docker volume prune`
- Mostra uso de recursos dos containers rodando
`docker stats $(docker ps --format {{.Names}})`
`docker stats $(docker ps --format {{"{{.Names}}"}})`
- Listar containers parados
`docker ps -f "status=exited"`
- Acessar terminal do container
Expand Down
Loading

0 comments on commit 23c5ac1

Please sign in to comment.