Dev container does not work anymore
When trying to execute the dev container to modify the code, I have the following error :

29 Replies
Hm, how did you start the container?
by using rebuild and reopen container
Ok, let me quickly try to reproduce... I guess from main?
I tried to remove all dev images / prune all
Yes from main with a little bit of specific code, but that didn't change for 3 months
I can try without any specific code
tried to restart docker servoce
Give me a few minutes to spin one fresh up.
tried to reboot my laptop
with me, it started successfully

which OS ? which docker version ?
Darwin ffo-macbook.local 24.1.0 Darwin Kernel Version 24.1.0: Tue Sep 17 07:46:59 PDT 2024; root:xnu-11215.40.59~38/RELEASE_ARM64_T6000 arm64
did you remove everything ?
containers / images / docker system prune -a ?
Docker version 27.2.0, build 3ab4256
It was a clean machine, newly installed docker, so nothing cached here
ok ok
thanks for the test
have you tried
docker sytem prune -a?
(that will delete other containers and images as well, so be cautious)Yes yes already did it
It works on my colleague laptop (windows + WSL)
on my side, ubuntu, it does not work
but the error is not really understandable
Yeah that error is super cryptic
It sounds a little like that the devcontainer misses a file when starting.
Have you tried reinstalling the devcontainer extension?
Nop, I'll try it thank you 🙂
If I found a solution I 'll add it here

when uninstall install again dev container extension, I see the main error

This is the network mode !
by removing it takes the bridge, and it can goes outside.
by keeping it, it's internal docker network, and it can't go outside
Hm interesting that this fails.
I mean its a dev container, we could remove that flag.
You wana do a PR? Happy to review
BUT, it's maybe due to my docker configuration according to my ubuntu host.
As it works on your host and my colleague host
Could be, true.
I wonder a little bit, because if we take out that flag... how does zitadel communicate with the DB? It lacks port exposure 🤷♂️
Indeed if you do not specify any networks, then both containers will use the existing bridge one, so they'll be able to communicate
It just tried it and it works on a mac as well
Does it also work on WSL2?
I'll let you know ASAP
it's ok for WSL too
Perfect, do you wana create a PR, or should I?
I can do it, but next week
Thanks!