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

log errors from ApplyUncompressedLayer #197

Merged
merged 1 commit into from
Jul 16, 2018

Conversation

TomasTomecek
Copy link
Contributor

without

Writing manifest to image destination
Storing signatures
DEBU[0004] Start untar layer
Failed
ERRO[0004] error pulling image "docker.io/library/busybox": unable to pull docker.io/library/busybox: unable to find image in the registries defined in "/etc/containers/registries.conf"

with

Writing manifest to image destination
Storing signatures
DEBU[0005] Start untar layer
ERRO[0005] Error while applying layer: ApplyLayer exit status 1 stdout:  stderr: lchown /home: invalid argument
Failed
ERRO[0005] error pulling image "docker.io/library/busybox": unable to pull docker.io/library/busybox: unable to find image in the registries defined in "/etc/containers/registries.conf"

Related: containers/podman#1087

@rhatdan
Copy link
Member

rhatdan commented Jul 13, 2018

LGTM, although I would still like to make the higher level tools like buildah and podman check this if running as non root and using the mappings.
@nalind PTAL

@TomasTomecek
Copy link
Contributor Author

+1, this is just a quick and dirty solution

Would be so nice to have a paragraph about this in a man page and point people to it via the error message.

@giuseppe
Copy link
Member

Patch here: containers/podman#1097

@TomasTomecek
Copy link
Contributor Author

Giuseppe, nicely done! I'm personally still in favor of merging this PR since the present code eats the error message and makes debugging things harder (strace needed to see the error message).

@giuseppe
Copy link
Member

yes I agree, this patch is still nice to have. There might other cases when the error happens and there is no clear output to the user

@giuseppe
Copy link
Member

LGTM

@rhatdan rhatdan merged commit 0ab7541 into containers:master Jul 16, 2018
@runcom runcom mentioned this pull request Nov 9, 2018
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

Successfully merging this pull request may close these issues.

3 participants