-
Notifications
You must be signed in to change notification settings - Fork 2.6k
More helpful error message when Dockerfile not found #16354
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
Comments
@flouthoc PTAL |
@dougbreaux Actually the error is coming from server, in |
Yes this should be relative to the context directory. |
It should also default to Containerfile not Dockerfile. |
A friendly reminder that this issue had no activity for 30 days. |
Poke so Issue doesn't auto-close without action |
Fixes: containers#16354 Currently we check on the server side, which ends up generating a bad error message. $ podman --remote build foo/ ERRO[0000] While reading directory /home/dwalsh/go/src/github.com/containers/podman/foo: EOF Error: stat /var/tmp/libpod_builder1249622306/build/Dockerfile: no such file or directory With this change you will get ./bin/podman --remote build foo/ Error: Containerfile not specified and no Containerfile or Dockerfile found in context directory, /home/dwalsh/podman/foo Signed-off-by: Daniel J Walsh <[email protected]>
Better then a Poke, I fixed it. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
When Dockerfile is not found where it's referenced, the error message is less clear than it could be:
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
orbrew info podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes/No
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: