-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[BUG] Compose won't find Dockerfile when in a symlinked folder #12799
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
Can't reproduce
|
maybe specific to WSL when symlink points to a distinct windows drive ? |
Can you please try running with |
Hi @ndeloof this might indeed be a Windows only problem.
However this issue happens also when in the real folder Edit: formatting |
Ouch. Unrelated to this issue then, but could you please run |
Sure thing @ndeloof. From the real folder:
|
this is actually #12669, fixed by docker/buildx#3141 |
Glad to hear! What about my initial issue tho? |
Also dumping this log with
|
is |
To be clear, C: is the symlink. |
Description
Expected:
Compose to build the image from the Dockerfile
Current:
Steps To Reproduce
compose.yaml
ordocker-compose.yml
for example. Make sure it points to the Dockerfile using thebuild: .
directive.docker build -t test .
--> passdocker compose up -d --build
--> passdocker build -t test .
--> pass`docker compose up -d --build
--> failCompose Version
Docker Environment
Anything else?
Took me long enough to figure this out, and it surprised me that
docker build
worked, but notdocker compose
The text was updated successfully, but these errors were encountered: