Replies: 6 comments
-
Hi 👋 Thanks for the detailed description. Can you try applying the changes in https://github.com/jguidoux/poc-devcontainers/compare/main...samruddhikhandale:poc-devcontainers:patch-1?expand=1 and see if that helps? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Thanks for your help @samruddhikhandale. Or from VSCode itself ? I don’t know, it feels like a bug... |
Beta Was this translation helpful? Give feedback.
-
With another repository: https://github.com/JenSeReal/otel-getting-started.git, I have exactly the same issue. This one, has not been made by me and it is supposed to work. |
Beta Was this translation helpful? Give feedback.
-
I tried another time following this medium article: https://medium.com/@jannismilz/create-a-devcontainer-9191a2d5ff7b. And same again, With DevPod, it woks well. Am I the only one with that issue ? |
Beta Was this translation helpful? Give feedback.
-
Hi, I tried to use dev-container directly from my git repository https://github.com/jguidoux/poc-devcontainers using the VSCode command:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello everyone.
I discovered dev containers and try to play with it to look if it can be useful in my company.
I am using VScode to initiate dev container on a simple maven/spring project.
At first, it works really well, but then I try to complexity the devcontainer with a docker-compose which build a Dockerfile it does not works anymore.
I used the "Java+postgres" configuration from VScode to create this dev-container.
You can find my project on github: https://github.com/jguidoux/poc-devcontainers
I tried to find a similar project on Github (a dev container with a docker-compose + Dockerfile), I had the same issue.
The error when I launched the dev-container is :
It does not find the Dockerfile because, he is looking for it in the wrong path. He is looking in the VSCode extension directory. Why ?
It should look in that directory :
/home/j.guidoux/projets/POC/dev-containers/dev-container-poc
My project directory look like that:
The interesting part of the docker-compose.yaml look like that:
Thanks for your help,
Jérémie
The devcontainer.json look like that :
I am using VScode version 1.88.0
I am using the dev-container verison v0.354.0
I have docker version 26.1.0, build 9714adc
I have docker compose version v2.13.0
I am on ubuntu 23.10
I have NodeJS v22.0.0
and npm : 10.6.0
See below the complete logs when I launched dev-containers :
I hope these information can help you to find my issue. I have the impression that the configuration of my repository is correct.
I tried many changes without success.
:
The only one which works whin in the docker-compose I changed the build context path with an absolute path:
Beta Was this translation helpful? Give feedback.
All reactions