johnk
johnk
Explore posts from servers
CCoder.com
Created by johnk on 7/23/2024 in #help
Coder docker container works on N4 Google Compute instance but no longer C4
Hello, I have been using coder a ton lately and it's been amazing! I have been using the C4 instance for a few weeks, then recently (within the last few days) used N4 instead. In that time, it appears coder's docker template has become incompatible. To reproduce: 1. Create c4-standard-8 machine 2. Run the following commands 2.a sudo apt install docker.io 2.b sudo usermod -aG docker ${USER} 2.c sudo chmod 666 /var/run/docker.sock 2.d curl -L https://coder.com/install.sh | sh 2.e coder server 3. Open coder, login, and create a workspace using the docker template, you will notice it hangs at docker_image.main: Still creating. forever. if you find the dockerfile and manually run it with docker build . -t test:1 you will see it's an endless loop of this
---> 35a88802559d
Step 2/6 : RUN apt-get update && apt-get install -y curl git golang sudo vim wget && rm -rf /var/lib/apt/lists/*
---> Running in b9f76bfbc76d
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu noble InRelease
Ign:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu noble InRelease
Err:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Connection failed [IP: 91.189.91.81 80]
Ign:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
---> 35a88802559d
Step 2/6 : RUN apt-get update && apt-get install -y curl git golang sudo vim wget && rm -rf /var/lib/apt/lists/*
---> Running in b9f76bfbc76d
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu noble InRelease
Ign:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu noble InRelease
Err:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Connection failed [IP: 91.189.91.81 80]
Ign:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
None of this happens for N4 or others. How do I fix this?
4 replies