Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

podman-compose does not propagate build exit codes #1061

Open
JC-85 opened this issue Oct 14, 2024 · 0 comments
Open

podman-compose does not propagate build exit codes #1061

JC-85 opened this issue Oct 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@JC-85
Copy link

JC-85 commented Oct 14, 2024

Describe the bug

podman-compose does not propagate exit statuses from podman build

To Reproduce

FROM docker.io/alpine:latest
RUN exit 1
services:
  minimal:
    build:
      context: .

Output

$ podman build .
STEP 1/2: FROM docker.io/alpine:latest
STEP 2/2: RUN exit 5
Error: building at STEP "RUN exit 5": while running runtime: exit status 5

$echo $?
5
$ podman-compose build
podman-compose version: 1.0.6
['podman', '--version', '']
using podman version: 4.9.3
podman build -f ./Dockerfile -t podman_minimal .
STEP 1/2: FROM docker.io/alpine:latest
STEP 2/2: RUN exit 5
Error: building at STEP "RUN exit 5": while running runtime: exit status 5
exit code: 5

$ echo $?
0

Expected behavior
podman-compose should propagate the exit status from the failing build setp, or at a bare minimum return a non-zero code for failed build.

Actual behavior
Always return status 0.

Version

$ podman-compose version
podman-compose version: 1.0.6
['podman', '--version', '']
using podman version: 4.9.3
podman-compose version 1.0.6
podman --version
podman version 4.9.3
exit code: 0

Environment:

  • OS: WSL
@JC-85 JC-85 added the bug Something isn't working label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant