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
Codercord
Codercord2w ago
<#1282996658166173746>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phet(Dam)
Phet(Dam)2w ago
No description
Caspertje
Caspertje2w ago
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:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
Phorcys
Phorcys2w ago
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!
Phet(Dam)
Phet(Dam)3d ago
it ' work, thankyou
Phorcys
Phorcys3d ago
great!
Codercord
Codercord3d ago
@Phorcys closed the thread.
Want results from more Discord servers?
Add your server