Skip to content

Commit

Permalink
Update docker.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pktiuk authored Feb 14, 2024
1 parent 61dd3ef commit d378950
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/Narzędzia🛠️/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,13 @@ docker run app
docker run app 5555 5556 # gdy chcemy użyć własnych argumentów
```

Możliwe jest też ustawienie własnego entrypointa przy uruchomieniu.

```bash
# Executes bash -c "ls /"
docker run --entrypoint bash my-image:latest -c "ls /"
```

## Docker compose

Jest on wykorzystywany, kiedy potrzebujemy uruchomić wiele aplikacji, które będą się ze sobą komunikować (a odpalenie w dockerze skryptu, który wszystko nam poodpala nie jest opcją).
Expand Down

0 comments on commit d378950

Please sign in to comment.