Add Docker commands

This commit is contained in:
James Skemp 2023-08-22 19:56:54 -05:00
parent 2ad3571346
commit 2b19ef4463
2 changed files with 13 additions and 0 deletions

View File

@ -58,4 +58,16 @@ docker cp path/to/file <container>:./destination/path/
docker exec -it <container> bash
```
## System
```bash
# Show disk usage.
docker system df
docker system df --verbose
# Show active container stats.
docker stats
# View and prune images.
docker image ls --filter dangling=true
docker image prune
```

View File

@ -179,6 +179,7 @@ htop
# Memory usage.
free
# Human readable.
free -h
# Show in MBs.
free -m