refactor: move logger to monorepo

This commit is contained in:
2023-03-14 17:18:13 +01:00
parent 2428042fa3
commit e9185d248b
43 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
# Docker cheat sheet
## List running containers
```shell
docker ps
```
## List running containers of a `docker-compose.yml`
In the directory of the `docker-compose.yml`:
```shell
docker-compose ps
```
## Restart container
`$CONTAINERID` from `docker ps`.
```shell
docker restart $CONTAINERID
```
## Run program in container
`$PROGRAM` can be any program that is installed in the container `bash`, `sh`, `node`, `curl`...
```shell
docker exec -it $CONTAINERID $PROGRAM
```
## Tidy system
This removes unused images, networks, ... from your system.
```shell
docker system prune
```
Please consult the [Docker documentation](https://docs.docker.com/engine/reference/commandline/system_prune/) for more information.
## Further resources
* [An Exhaustive Guide to Writing Dockerfiles for Node.js Web Apps](https://blog.hasura.io/an-exhaustive-guide-to-writing-dockerfiles-for-node-js-web-apps-bbee6bd2f3c4)
* [Docker and Node.js Best Practices
](https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md)