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

Better separation of stdout and stderr for podman-hpc pull ... #56

Closed
wholtz opened this issue Apr 28, 2023 · 1 comment
Closed

Better separation of stdout and stderr for podman-hpc pull ... #56

wholtz opened this issue Apr 28, 2023 · 1 comment

Comments

@wholtz
Copy link

wholtz commented Apr 28, 2023

I'd like to see podman-hpc pull ... only output to stdout during a successful pull so that I can use it in a script like this:

podman-hpc pull docker.io/debian:bullseye > /dev/null

and only get output if there was a problem.

@lastephey
Copy link
Collaborator

After some debugging I traced this behavior back to Podman rather than podman-hpc. Podman sends the usual container pull output to stderr. Here I'm testing on my laptop:

(base) DOE-7616476:~ stephey$ podman pull quay.io/podman/hello:latest > /dev/null
Trying to pull quay.io/podman/hello:latest...
Getting image source signatures
Copying blob sha256:32c07ec4961ddabfb3bb898fbbac172cad872e732a2ac5b8b8cc7e379a5aacff
Copying config sha256:c098961c7f4cf309b966502d01ec5a36cca74ab9385fb286c5aa07bf915cd9a6
Writing manifest to image destination
Storing signatures
(base) DOE-7616476:~ stephey$ 

Our podman-hpc design goal is to be a transparent wrapper on top of Podman, so we'll route the output the same way they do. You're welcome to open an issue with Podman and see what think about changing this behavior.

I'll go ahead and close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants