mirror of
https://github.com/containers/podman-compose.git
synced 2024-12-12 09:41:16 +01:00
18472b53ac
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
16 lines
245 B
Markdown
16 lines
245 B
Markdown
We have service named sh1 that exits with code 1 and sh2 that exists with code 2
|
|
|
|
```
|
|
podman-compose up --exit-code-from=sh1
|
|
echo $?
|
|
```
|
|
|
|
the above should give 1.
|
|
|
|
```
|
|
podman-compose up --exit-code-from=sh2
|
|
echo $?
|
|
```
|
|
|
|
the above should give 2.
|