Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

41
tldr/docker-compose Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# docker compose
> Run and manage multi container docker applications.
> More information: <https://docs.docker.com/compose/reference/>.
- List all running containers:
`docker compose ps`
- Create and start all containers in the background using a `docker-compose.yml` file from the current directory:
`docker compose up --detach`
- Start all containers, rebuild if necessary:
`docker compose up --build`
- Start all containers by specifying a project name and using an alternate compose file:
`docker compose -p {{project_name}} --file {{path/to/file}} up`
- Stop all running containers:
`docker compose stop`
- Stop and remove all containers, networks, images, and volumes:
`docker compose down --rmi all --volumes`
- Follow logs for all containers:
`docker compose logs --follow`
- Follow logs for a specific container:
`docker compose logs --follow {{container_name}}`