mirror of
https://github.com/autistic-symposium/backend-and-orchestration-toolkit.git
synced 2025-06-08 15:02:55 -04:00
🛌 Commit progress before sleep break
This commit is contained in:
parent
119cc7f62c
commit
585ee80f5d
319 changed files with 29 additions and 23 deletions
17
code/docker/README.md
Normal file
17
code/docker/README.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
## resources on docker
|
||||
|
||||
<br>
|
||||
|
||||
* 👉🏼 [docker hints and tricks](tricks.md)
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
----
|
||||
|
||||
### resources
|
||||
|
||||
<br>
|
||||
|
||||
* [eth docker](https://github.com/eth-educators/eth-docker)
|
43
code/docker/tricks.md
Normal file
43
code/docker/tricks.md
Normal file
|
@ -0,0 +1,43 @@
|
|||
## useful tricks for docker
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
#### shared folders
|
||||
|
||||
Removing some of the default shared folders can decrease CPU usage (e.g. remove `/Volumes` and `/private`).
|
||||
|
||||
Check storage with:
|
||||
|
||||
```
|
||||
docker info |grep Storage
|
||||
```
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
#### performance
|
||||
|
||||
In case of performance problems you can run:
|
||||
|
||||
```
|
||||
docker run --rm=true -it --privileged --pid=host \
|
||||
<image name> /usr/bin/top
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
#### cleaning up
|
||||
|
||||
See disk space:
|
||||
|
||||
```
|
||||
docker system df
|
||||
```
|
||||
|
||||
|
||||
Remove stopped containers, dangling images, the build cache, and unused networks:
|
||||
|
||||
```
|
||||
docker system prune
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue