Codespace will not build using docker-compose.yml
#49590
Unanswered
KatlehoJordan
asked this question in
Codespaces
Replies: 1 comment 3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Bug
Briefly, Codespaces successfully builds a codespace if the
devcontainer.json
instructs to build from aDockerfile
. However, if thedevcontainer.json
instructs to use adocker-compose.yml
, Codespaces will not build even if thatdocker-compose.yml
file is using the same exactDockerfile
.This error is generated:
Something odd is happening with the
docker-compose.codespaces.yml
, but I am not sure what is going on. My owndocker-compose.yml
file is correctly configured, and I can build the container locally when using VS Code Dev Containers and then I can rebuild it from the cached image usingdocker run
. This appears to be a bug with Codespaces.Reproducing the problem
Here I have provided a minimal repository to reproduce the problems. The
README.md
file instructs how replicate, step-by-step, including verifying that theDockerfile
anddocker-compose.yml
work locally with VS Code Dev Containers and usingdocker run
.Similar discussions
Other discussion threads that I examined but did not resolve this issue include:
Beta Was this translation helpful? Give feedback.
All reactions