Closed PAbernet closed 1 year ago
I tried to open a Container with Python & Postgres template and it was successful.
- VS Code: 1.74.0
- Dev Containers extension: v0.266.1
- MacOS: 13.0.1
Looking at your logs -
Error: No such image: operations_devcontainer_app
@PAbernet The Template's dockerfile mentions a python image. I wonder if you have accidentally modified that to operations_devcontainer_app
?
Nope. FROM mcr.microsoft.com/devcontainers/python:0-3.9
When I manually run docker-compose build/up
it works just fine. Only VSCode seems to have an issue with my setup.
Could you provide me version details for the following? 👇
Also, could you provide your repro steps? If you could search for operations_devcontainer_app
within your workspace, then that would be great.
From 'About VSCode':
Version: 1.74.0
Commit: 5235c6bb189b60b01b1f49062f4ffa42384f8c91
Date: 2022-12-05T16:47:18.476Z
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Linux x64 5.14.0-1054-oem snap
Sandboxed: No
Repro steps:
version
string in docker-compose-yml
to '3.7'
. '3.8'
fails immediatelyThe name operations_devcontainer_app
is simply derived automatically. The repository/workspace I'm working in is named operations
and the template uses app
for the Python container.
I still can not reproduce 😓 Comparing my logs with yours, I can see that the 👇 command either did not create the operations_devcontainer_app
image or something deleted that.
docker-compose --project-name operations_devcontainer -f .... build --no-cache
In a terminal, can you check if this image exists with docker images
?
My successful log 👇
Also, can you paste your complete logs?
F1 > Dev Containers: Show Container Log
Also, I tried with docker-compose
version 3.8
& 3.7
. Works for both.
On another note, do you have Docker Compose installed? I believe it gets installed by default on Windows & Mac Docker Desktop but doesn't on Linux 🤔
Using docker-compose version 1.17.1, build unknown
on the remote host, version 1.25.0
on the local machine. So that might be part of the reason.
Here's the entire log: remoteContainers-2022-12-14T18-46-22.464Z.log
Found an issue which mentions this as a bug --> https://github.com/microsoft/vscode-remote-release/issues/7651
However, this is expected to be fixed with latest versions of Dev Containers Extension (0.266.1 and 0.267.0-pre-release)
@PAbernet can you help double check if you have latest extension? Else, feel free to re-open the issue ☝️
Closing in favor of https://github.com/microsoft/vscode-remote-release/issues/7651
Thanks for you help, btw. I appreciate it.
Best I can tell it tries to download the fre3shly built image from some registry, which unsurprisingly fails. I'm using
version: '3.7'
in thedocker-compose.yml
because'3.8'
immediately fails. I assume my docker/docker-compose is too old.