-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
build with context and dockerfile fails due to cannot locate specified dockerfile for version 1.21.2 #5969
Comments
This works in 1.18.0, so definitely a regression:
|
I'm experiencing the same exact behavior. |
Got this error in Docker Compose 1.21.2 that comes with Docker Community Edition 18.05.0-ce-win66 2018-05-17. I upgraded to this version yesterday (2018-05-17). There were no errors prior to the upgrade. Reverted back to Docker Compose 1.21.0 that comes with Docker Community Edition 18.05.0-ce-rc1-win63 2018-04-26, and everything works fine. Observations:in 1.21.2, this is happening if the build.dockerfile in docker-compose.yml has a value of the format {folder}/Dockerfile.
if the value is changed to just the docker file name, and build.context is modified to include the folder path, it works fine. (not sure if this is the intended behavior going forward. i.e dockerfile cannot have folder name in the value)
|
+1 (on the problem, and it being a regression) |
+1 hit this issue today on windows for docker 18.05.0-ce-win66 (17760) Compose 1.21.2. |
Double checked it is work on windows for docker 18.03.1-ce-win65 (17513) Compose 1.21.1 |
@mathewrg Your example works fine for me:
# cat docker-compose.yml
version: '2.4'
services:
foo:
build:
context: .
dockerfile: test/Dockerfile
image: foobar:123
Am I missing something here? |
@shin- I have had multiple people verify this... Could you try the test project I linked to above? Perhaps it has something to do with the |
@lucastheisen Your example works fine as well. It's probably a Windows-specific issue. I'll investigate more.
|
Found the issue, which should be fixed by docker/docker-py#2038 |
source issue : docker/compose#5969
source issue : docker/compose#5969
source issue : docker/compose#5969
source issue : docker/compose#5969
Description of the issue
Running
docker-compose build
results in:Context information (for bug reports)
Steps to reproduce the issue
docker-compose build
Observed result
Expected result
Successful build
Stacktrace / full error message
Additional information
OS version / distribution,
docker-compose
install method, etc.OS: Windows 1709
Install method:
choco install docker-for-windows
The text was updated successfully, but these errors were encountered: