Skip to content

podman-remote: build: does not handle errors #7137

@edsantiago

Description

@edsantiago

podman-remote build, if there are errors, will happily exit 0 and with no output.

In window 1:

$ ./bin/podman system service --timeout=0

In window 2:

$ printf "FROM alpine\nRUN false\n" > Containerfile
$ ./bin/podman-remote build -t foo -f Containerfile .
$ echo $?
0

Expected:

$ ./bin/podman build -t foo -f Containerfile .
STEP 1: FROM alpine
STEP 2: RUN false
Error: error building at STEP "RUN false": error while running runtime: exit status 1
$ echo $?
125

(bonus: there is no output in the system server window, either)

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.remoteProblem is in podman-remote

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions