Added docker notes to the knowledge base

This commit is contained in:
Michele Cereda
2022-04-17 23:53:56 +02:00
parent ba0228c8ae
commit 3d6637a9db

23
knowledge base/docker.md Normal file
View File

@@ -0,0 +1,23 @@
# Docker
## TL;DR
```shell
# run a container
docker run --rm hello-world
# run a container and gite it a volume and variables
docker run -d --name boinc --net=host --pid=host -v "${HOME}/boinc:/var/lib/boinc" -e BOINC_GUI_RPC_PASSWORD="123" -e BOINC_CMD_LINE_OPTIONS="--allow_remote_gui_rpc" boinc/client
# show containers status
docker ps --all
# cleanup
docker system prune
```
## Further readings
- [archlinux wiki]
[archlinux wiki]: https://wiki.archlinux.org/index.php/Docker