-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem running a docker-compose devcontainer #1584
Comments
Hi @arntanguy thanks for reporting your issue. I believe the issue is the version of docker compose, devpod requires docker compose version 2 which might explain the missing In regards to the image error, I believe the default repo is |
Thanks @bkneis for the answer, now I feel a bit silly regarding Unforunately I am now running into a different issue: (full log below)
I'm again not sure what's going on here. Running for _, build := range v.Build {
if len(build) == 0 {
return fmt.Errorf("Build meta data can not be empty %q", build)
}
if !containsOnly(build, alphanum) {
return fmt.Errorf("Invalid character(s) found in build meta data %q", build)
}
} Where does this name come from, and how do I fix it? Full log
|
Hi @arntanguy this looks similar to #1576 For some reason devpod checks the version of docker-compose to make sure it is a semver. To me it looks like the ubuntu package you got it from has a named version (ds1-0ubuntu1~24). I'll take a look into and see why we need this check and if we can mitigate it. For now if you wanted to fix I think installing docker / compose from https://docs.docker.com/engine/install/ubuntu/ should work. |
Thanks @bkneis, this indeed solves the issue for me 👍 I can report it upstream to ubuntu maintainers if you wish, however I think it'd be nicer not to have to rely explicitly on Best regards, |
I am fairly new to the world of devcontainers and devpod, so please forgive me if the answer is obvious.
I'm trying to run a simple devcontainer using docker-compose for NextJS and PostgrSQL but can't make it work. Here is the output I get.
Please note that if I run
docker-compose up
directly everything works.I see two issues:
12:50:29 error Error finding project files: No such command: ls
: I don't understand what's trying to run anls
command?app
service (that builds from the Dockerfile) succeeds building, gets tagged asdefault-ne-9ff46_app:latest
but on the subsequent step it tries getting an image manifest fromdocker.io
. This docker image should be local, so why?What did you expect to happen instead?
How can we reproduce the bug? (as minimally and precisely as possible)
My full devcontainer/docker-compose configuration: https://github.com/arntanguy/mountain-planner/tree/main/.devcontainer
My
devcontainer.json
:My
Dockerfile
:My
docker-compose.yml
:Local Environment:
v0.6.9
DevPod Provider:
Anything else we need to know?
I have successfully managed using devpod with Docker in the past for cross-compiling C++ application, using Docker environments, but I have never tried it with docker-compose.
Thanks in advance for you input, and kudos for the project!
The text was updated successfully, but these errors were encountered: