merge files from the blockchain infra repo (#59)

This commit is contained in:
autistic-symposium-helper 2024-11-17 17:03:20 -08:00 committed by GitHub
parent 23f56ef195
commit 2a6449bb85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
346 changed files with 29097 additions and 132 deletions

15
code/docker/README.md Normal file
View file

@ -0,0 +1,15 @@
## docker
<br>
* **👉🏼 [docker hints and tricks](tricks.md)**
<br>
----
### external resources
<br>
* **[eth docker](https://github.com/eth-educators/eth-docker)**

43
code/docker/tricks.md Normal file
View 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
```