Devcontainer starting is taking really long / multiple times building the Dockerfile?

Hi, I have created a template from the starter "Docker (Devcontainer)" one and just selected home assistant for testing purposes. Creating the workspace takes really long and from the logs it seems like its building the dockerfile multiple times? Is this intended?
13 Replies
Codercord
Codercord4d ago
<#1331335238281986169>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys2d ago
it does seem like the devcontainer is being built multiple times, i will try to reproduce the bug
Greenman999
Greenman999OP2d ago
that would be great! for me this happens with every devcontainer every time
Phorcys
Phorcys2d ago
even if it's not homeassistant?
Greenman999
Greenman999OP2d ago
yes
Phorcys
Phorcys2d ago
have you made any edits to the template?
Greenman999
Greenman999OP2d ago
but whats weird is that the logs for the second and third build appear at once
Greenman999
Greenman999OP2d ago
Greenman999
Greenman999OP2d ago
there you can see that after the logs close automatically there are like 200 lines more
Phorcys
Phorcys2d ago
i'm not 100% sure it's actually building it multiple times, it might just be a bug in how we handle logs how long does it take from clicking start to the workspace being available? I can reproduce on our internal instance pretty weird
Luna Lovegood
Luna Lovegood22h ago
I also ran into this issue, that's why build image from devcontainer.json takes time.
Greenman999
Greenman999OP18h ago
Around 4 minutes i think

Did you find this page helpful?