VScode devcontainer build script calls image by wrong name #1567
Comments
@OmarOmeiri can you please share which version of Docker Compose you have installed by running |
It looks like Docker Compose made a breaking change in 2.8.0, which was subsequently reverted in 2.9.0. This sounds related. https://github.com/docker/compose/releases/tag/v2.8.0
If you are on Compose 2.8.0, can you try updating to 2.9.0 and see if the issue is fixed? |
For me this issue still exist with docker-compose 2.9.0. The trick with adding the image name solved this for now. |
I'm actually using v2.9.0 |
@jkeech Seems like the revert was only for resources. |
Continuing in microsoft/vscode-remote-release#7047. |
Container build breaks with:
The image is created successfully, but the script is calling
pull
andinspect
with the wrong image name.If I run
docker image ls
I get:So the image is being created with this name:
lullo_devcontainer-workspace
But the script calls:
lullo_devcontainer_workspace
Replaces "-" with "_"Steps to Reproduce:
docker-compose.yml
devcontainer.json
Ctrl + Shift + P
-> Remote-Containers: Rebuild and Reopen in ContainerFull Logs for reference:
UPDATE
I've made it work by explicitly setting the image name in the
docker-compose.yml
, like:It is working, but sure looks like a bug to me.
The text was updated successfully, but these errors were encountered: