Standard Kube install fails for docker template

I followed the standard guide to install Coder on our Kubernetes offer (I work at OVHcloud) Coder starts well but when I try to create a Docker template, I have an error about Docker daemon. I do not see any explanation on specific modification to do on deployement so I'm all ears to any advice. Error =>
Error: Error pinging Docker server: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

on main.tf line 19, in provider "docker":

19: provider "docker" {
Error: Error pinging Docker server: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

on main.tf line 19, in provider "docker":

19: provider "docker" {
Solution:
yeah the general expectation with k8s is that the backend could be anything, it doesn't have to be docker
Jump to solution
12 Replies
Codercord
Codercord5mo ago
<#1234520124611100813>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Atif
Atif5mo ago
To use the docker template when Coder is deployed via K8s. Coder pods needs access to the system docker socket if you want to provision docker workspaces The expectation is that with K8s installation, the preferred infrastructure for workspaces will be Kubernetes pods too Another option can be to update your template to use a remote docker host.
TitiMoby
TitiMoby5mo ago
oh... I think I got it: Kube install expects to start with Kube templates
Atif
Atif5mo ago
Refer to this for using a remote docker host. Yes. That's the benefit that workspaces can be hosted as K8s pods too Feel free to ping me if you need any further help.
TitiMoby
TitiMoby5mo ago
I started with a simpke VM installation and so I used docker template. It makes great sense to use now Kube template, thanks
Atif
Atif5mo ago
Makes sense.
Solution
Phorcys
Phorcys5mo ago
yeah the general expectation with k8s is that the backend could be anything, it doesn't have to be docker
Phorcys
Phorcys5mo ago
so with Kubernetes you don't usually use the backend directly (Docker in this case) unless you really need to and if you really need to do that then you won't benefit from k8s specific features can we close the issue now that it's clearer ?
TitiMoby
TitiMoby5mo ago
Oh I did not know it was considered an issue so of course you can close it 🙏
Phorcys
Phorcys5mo ago
yeah we have a lifecycle for threads so we can do some filtering!
Codercord
Codercord5mo ago
@Phorcys closed the thread.
Want results from more Discord servers?
Add your server