© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•6mo ago•
10 replies
shadowrs

Dev Env setup Error [windows VSC dev container]

I already have Immich setup and running in Docker Desktop windows 11 for personal use. I was looking to setup the dev environment too in a VSC dev container
When I run "Dev Containers: Rebuild and Reopen in Container" in VSC per the setup guide https://immich.app/docs/developer/devcontainers
[issue 1] The container fails to start with this error:
[+] Running 1/3
 - Container immich_redis     Creating                                     0.0s
 - Container init             Creating                                     0.0s
 ✘ Container immich_postgres  Error respons...                             0.0s
Error response from daemon: Conflict. The container name "/immich_postgres" is already in use by container "218b211d332d9d6423e3000054c6f5cf63b98bb07a5ab6d33923
17fce64957a5". You have to remove (or rename) that container to be able to reuse
 that name.
[+] Running 1/3
 - Container immich_redis     Creating                                     0.0s
 - Container init             Creating                                     0.0s
 ✘ Container immich_postgres  Error respons...                             0.0s
Error response from daemon: Conflict. The container name "/immich_postgres" is already in use by container "218b211d332d9d6423e3000054c6f5cf63b98bb07a5ab6d33923
17fce64957a5". You have to remove (or rename) that container to be able to reuse
 that name.


I turned off the docker containers that run my user-installation https://i.vgy.me/vmZzNT.png

Should I be trying to give a unique name to the dev postgres container? Maybe temporarily renaming my user-installed postgres before + after when I use the dev container?
docker rename <current_name> <new_name>
docker rename <current_name> <new_name>


Same for redis, renaming them is what the error messages suggests. Just wondering if renaming to avoid conflicts is the right practice to when I want to dev or run my user-mode installation?

[issue 2] After renaming the containers, I get a different dev container startup error in VSC:
failed to execute bake: read |0: file already closed
failed to execute bake: read |0: file already closed

full log here https://pastes.io/immich-dev-vsc
EDIT: a docker desktop restart seems to have fixed this after renaming the user-installation-containers

my compose.yml and .env are defaults, except :
- non-default postgres db password
- a few volumes mounts for original image libraries
- ml acceleration section uncommented for nvidiacuda
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Immich Setup - Docker on Windows
ImmichIImmich / help-desk-support
13mo ago
Recommend ENV for immich docker setup
ImmichIImmich / help-desk-support
10mo ago
Qnap Setup with Container center Dockerhub
ImmichIImmich / help-desk-support
14mo ago
Immich server container error
ImmichIImmich / help-desk-support
3y ago