v4: the devcontainer builds and starts again — the docker-outside-of-docker feature failed to install, since the base image is now Debian trixie, where its default moby option isn't supported; it now installs Docker's own packages ("moby": false). Every service of the compose project was also built under one image name, gerbeur-dev, the workspace with the features and the others without, so whichever finished last took the name and the workspace could lose its docker CLI; each service now gets its own image, built from the same cache.
Checked with the devcontainer CLI's up: the image builds, install exits 0, gerbeur and musique answer on :3000, :3001, :8000 and :8001 (openid-configuration included), and docker ps works as node in the workspace. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -18,7 +18,6 @@ x-workspace: &workspace
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: gerbeur-dev
|
||||
network_mode: host
|
||||
user: node
|
||||
working_dir: /workspaces/gerbeur
|
||||
|
||||
@@ -20,7 +20,10 @@
|
||||
"features": {
|
||||
"ghcr.io/warrenbuckley/codespace-features/sqlite:1": {},
|
||||
// The docker CLI, on the host's daemon, for the instances' logs and
|
||||
// restarts (compose.yaml).
|
||||
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
|
||||
// restarts (compose.yaml). Docker's own packages: the base image is Debian
|
||||
// trixie, which has no moby-cli.
|
||||
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
|
||||
"moby": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user