-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
ERROR: Cannot locate specified Dockerfile #5823
Comments
Thank you for the report! If this worked before, it was definitely by accident, but I agree that we should keep up with the changes in the engine and support this as well. We'll prioritize accordingly! |
@shin- I'm getting the same error with docker-compose 1.21.0 |
Make sure you have the latest version of the |
That's the case:
|
The Python package, not the Docker engine. |
|
I'm not able to reproduce with a similar test case:
Is there anything I'm missing that would account for the discrepancy? Are you seeing the same result with the binary distribution? |
OK, I think I have isolated the issue. This test case works, which is context and dockerfile in different folders:
But now it's failing when the dockerfile is in the context or context's subfolder!
The Dockerfile is being looked up if unspecified in compose, but this is still an issue if you need an alternate Dockerfile. |
I will open a dedicated issue. |
I am getting the
Switching back to the Stable builds works fine. Excerpt of my docker-compose.yml file: build:
context: .
dockerfile: ./src/Services/Roster.API/Dockerfile |
Description of the issue
Since version
1.20.0
, compose fails to locate a dockerfile out of the build context. It worked before, and is allowed since Docker 18.03 docker/cli#886Context information (for bug reports)
Steps to reproduce the issue
Observed result
Expected result
Stacktrace / full error message
Additional information
macOS 10.13.3
The text was updated successfully, but these errors were encountered: