Error: Error pinging Docker server: Cannot connect to the Docker daemon at unix:///var/run/docker.so
Hello, thank you for create answer opensource, i already host coder and coder-server in my k8s by Helm , i try to create template from document with start template docker (https://github.com/coder/coder/blob/main/examples/templates/docker/main.tf) after i change terraform and build my template i get this error
Error: Error pinging Docker server: Cannot connect to the Docker daemon at unix:///var/run/docker.so
i am terraform and k8s newbie, how to check and fix this error , i need to run Angular project on Coder, Thankyou
GitHub
coder/examples/templates/docker/main.tf at main · coder/coder
Provision remote development environments via Terraform - coder/coder
7 Replies
<#1282996658166173746>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Are you sure you sure you have Docker installed and running in the environment on which Coder runs?
You need to mount the Docker socket of your host if you are running Coder as a container using the default template:
hello @Phet(Dam), since you are running in k8s you will not be able to use the Docker templates (unless you are using Docker as your container runtime for k8s, but that is pretty uncommon)
anyways, try using the kubernetes template instead!
it ' work, thankyou
great!
@Phorcys closed the thread.