containers / containers/podman-compose

stdout not showing up, only stderr

Open
#605 0 comments 3 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
6.2k
Forks
622
PR merge metrics
No merged PRs in 30d

Description

latest dev branch, on macOS (using podman machine defaults)

```shell
# podman-compose --version
podman-compose version: 1.0.4
['podman', '--version', '']
using podman version: 4.3.1
podman-compose version 1.0.4
podman --version
podman version 4.3.1
exit code: 0
```

minimal example

```python
# counter.py
import sys
import time

counter = 0

while True:
print(f"stdout {counter}")
print(f"stderr {counter}", file=sys.stderr)
counter = counter + 1
time.sleep(10)
```

```bash
# this only shows stderr log lines, not stdout
$ podman-compose run counter python /counter.py
stderr 0
stderr 1
stderr 2
stderr 3
stderr 4
stderr 5
stderr 6
stderr 7
```

```yaml
# compose.yaml
name: counter

services:
counter:
image: docker.io/library/python:3.11-slim
restart: unless-stopped
volumes:
- ./counter.py:/counter.py
command: [ "python", "/counter.py" ]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.