ImmichI
Immich4mo ago
Chuckame

devcontainer setup failing on MacOS + VSCode

Hello there,
I'm unable to launch the devcontainer environment.
To reproduce:
  • open vsc
  • go to dev container extension
  • click on "+"
  • click on "clone repository in container volume"
  • click on "clone from GitHub repo in a container volume"
  • select immich-app/immich repo
  • select main branch
  • wait
  • expect the error (not pasting all):
    [immich-server dev-container-server 1/5] RUN apt-get update --allow-releaseinfo-change &&   apt-get install sudo inetutils-ping openjdk-11-jre-headless   vim nano   -y --no-install-recommends --fix-missing:
    0.220 Get:1 http://deb.debian.org/debian trixie InRelease [140 kB]
    0.267 Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
    ...
    2.970 Package openjdk-11-jre-headless is not available, but is referred to by another package.
    2.970 This may mean that the package is missing, has been obsoleted, or
    2.970 is only available from another source
    2.970 
    2.971 E: Package 'openjdk-11-jre-headless' has no installation candidate
Then it tries to stop the stack but it continue failing:
Error: Command failed: docker compose --project-name immich-dev -f /workspaces/immich-official/docker/docker-compose.dev.yml -f /workspaces/immich-official/.devcontainer/server/container-compose-overrides.yml -f /tmp/devcontainercli-root/docker-compose/docker-compose.devcontainer.build-1757793751332.yml build immich-server redis database immich-machine-learning init


Do you have any idea to fix that ?
I'm able to execute docker & docker compose commands from inside the devcontainer
Was this page helpful?