This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
Docker Compose V2 not working when building containers from git source (subdir) #1958
Labels
compatibility
Compatibility with docker-compose
Description
I'm working in a project that integrates some services hosted in gitlab via docker-compose. Some of these containers are built using dockerfiles inside subdirectories, as you can see in the screenshot below:
Last week, this was working fine, but I had to update my docker application, and today, when I tried to up the containers, I got the error below:
After a lot of research, I wasn't able to find a solution, but verifying the docker dashboard, I just disabled the following feature:
When I did it, docker-compose version was back to 1.29.2, build 5becea4c, and I was able to continue my work.
This issue is being opened to help people that are suffering the same problem as me (I lost a full afternoon on this issue), and to ask you to fix this, if possible.
Steps to reproduce the issue:
Describe the results you received:
I received the following error: "failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to read dockerfile: failed to load cache key: subdir not supported yet".
Describe the results you expected:
I expected the containers to be built correctly and without issues.
**Output of
docker-compose --version
: ***Output of
docker version
:Output of
docker context show
:Output of
docker info
:Additional environment details (AWS ECS, Azure ACI, local, etc.):
The text was updated successfully, but these errors were encountered: