docker compose

main
Nguyen Tran Hau 2020-07-13 14:27:08 +07:00
parent 12e31f7bea
commit cad5eb4a3d
1 changed files with 23 additions and 0 deletions

View File

@ -39,3 +39,26 @@ Docker run options:
| `--rm` | | Remove container when exit |
| `--tty`, `-t` | | Allocate a pseudo-TTY |
| `--volume`, `-v` | `-v "$(pwd)"/data:/data` | Bind host directory:container directory |
## Docker Compose
Update images:
```sh
docker-compose pull
```
Start:
```sh
docker-compose up
# Detach
docker-compose up -d
```
Stops:
```sh
docker-compose down
```