docker daemon
Hi, I am learning kubernetes and stuff around it and decided to deploy coder on my home server running microk8s. After like 5 hours, finally got it working with argocd (i am noob with helm yet) but when i try to create a docker template, it throws an error that it cannot connect to docker.
any ideas?
21 Replies
<#1216337189030334516>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Is Docker installed?
And docker socket mounted into the Coder pods?
Yes, I have. Yes it is. I have mounted it later, now I have issue with permissions, so i have:
securityContext:
runAsNonRoot: false
allowPrivilegeEscalation: true
and still does not like the permissions
my chart.yaml
my values.yaml
What is the gid of docker group on host?
Coder user inside the Coder pod needs to be member of that group
i had no group, so i created one, but pod is trying to run gid 1000 which is my sudoer user
how can a user in pod be part of group on host machine?
when i tried add coder into group it just said coder user does not exist
Can you show
getent group docker
on host?
if it helps, my docker is a snap install
hmm. We just need the coder user in coder container to be a meber of 1002 group or have gid 1002
pod does not deteted the group
could you try?
first only try runAsGroup
same result with added fsGroup
ok
Try
We do run docker workspaces within a k8s deployment. But our docker hosts are remote. So This has not come so far
i might have to resolve issue with security context, because argocd reports:
securityContext: {}
As an alternative you can check https://coder.com/docs/v2/latest/platforms/docker#using-remote-docker-host
Docker - Coder v2 Docs
Set up Coder with Docker
securitz context finally ocntains the values, but no change. i will check the link you posted, theoretically i can have my host machine as "remote" machine right?
I probably should have started with a reboot! It works now, not sure which step made a difference but created a docker workspace
Thank you very much