arkevorkhat
CCoder.com
•Created by arkevorkhat on 12/28/2024 in #help
unable to remove docker image
Thank you Phorcys, both for your effort and your patience
23 replies
CCoder.com
•Created by arkevorkhat on 12/28/2024 in #help
unable to remove docker image
alright, here's a bit more info:
* created a second user
* created another workspace under their name using the same github repo as one of my own workspaces
* attempted to delete it
* got same error message with identical hex data.
23 replies
CCoder.com
•Created by arkevorkhat on 12/28/2024 in #help
unable to remove docker image
Alright, just re-ran the test, steps below:
* Created two workspaces using the vercel/next.js template named test-2 and test-3
* waited for both to finish setting up
* attempted to delete test-3
* got error message
Error: Unable to remove Docker image: Error response from daemon: conflict: unable to remove repository reference "ghcr.io/coder/envbuilder:latest" (must force) - container 8a6a83b04dd9 is using its referenced image 0043aade3996
- error banner says "Workspace build failed - terraform apply: exit status 1"
Confirmed reproducible on my setup. Happy to send you my system specs and docker compose file if you'd like.23 replies
CCoder.com
•Created by arkevorkhat on 12/28/2024 in #help
unable to remove docker image
I'll go ahead and see if I can replicate the issue now that I've fixed the other problems in my install, since that'll narrow down whether it's only an issue when envbuilder uses a fallback image.
23 replies
CCoder.com
•Created by arkevorkhat on 12/28/2024 in #help
unable to remove docker image
Yes I did, the ultimate fix is posted here: https://discord.com/channels/747933592273027093/1322449893058547833
23 replies
CCoder.com
•Created by arkevorkhat on 12/28/2024 in #help
github private repo won't pull
OK, turns out this was a layer-8 issue, though a very subtle/frustrating one.
Turns out
docker compose -f coder.yml restart
doesn't actually refresh the environment variables, so none of the changes I was making were getting shown to coder. This resolved itself after I used docker compose ... down
followed by docker compose ... up -d
.
Edit to add:
The final solution was the following:
Coder.yml (Docker compose)
main.tf (terraform source code for template)Once you've made those additions, built, and published your template, you can then start to create a workspace, authenticate with github, and finally provide the https link to your private repository. Some pitfalls to watch out for: * If you're getting a 404 error, check the following: * that the callback url in the github url matches the one you put into your app * that the client id matches your github app
7 replies
CCoder.com
•Created by arkevorkhat on 12/28/2024 in #help
github private repo won't pull
Tried sticking it in compose and adding
to my terraform. Now i can get as far as clicking the Login with GitHub button, which promptly directs me to a 404 page.
7 replies
CCoder.com
•Created by arkevorkhat on 12/28/2024 in #help
unable to remove docker image
CLOSE
23 replies
CCoder.com
•Created by arkevorkhat on 12/28/2024 in #help
unable to remove docker image
... SIGH
Turns out the fix is that you have to stop every single workspace created from the same template that was used to create the one workspace you want to delete. Then you can delete the workspace(s) you want to get rid of, then if there are any left, you can restart them.
23 replies
CCoder.com
•Created by arkevorkhat on 12/28/2024 in #help
unable to remove docker image
All of this wouldn't be an issue if it wasn't so obscenely difficult to set up access to private github repos. I've now tried the oauth app method 3 times, and I'm trying to clean up containers so I don't bog down my server while I try the personal access token method.
23 replies