Unable to create docker
This is error log:
Solution:Jump to solution
in both cases you need to add the coder user to the docker group.
https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user...
Docker Documentation
Linux post-installation steps for Docker Engine
Find the recommended Docker Engine post-installation steps for Linux users, including how to run Docker as a non-root user and more.
9 Replies
<#1232114567497256992>
Category
Other
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
IDs are hidden
Ok
Also
Error: Post "http://localhost/api/v1/namespaces/devtrung/persistentvolumeclaims": dial tcp [::1]:80: connect: connection refused
on main.tf line 190, in resource "kubernetes_persistent_volume_claim" "home":
190: resource "kubernetes_persistent_volume_claim" "home" {
How is Coder installed and running?
To use the docker template, the user is running the Coder service, or, in the case of docker-compose/Kubernetes, the coder user inside the coder container needs access to the docker socket.
For the Kubernetes template, you need a k8s cluster and the template configured to be able to use the provided KUBECONFIG file
See the prerequisites for each template.
https://registry.coder.com/templates/nomad-docker?tab=readme
Nomad - Coder Registry
Provision Nomad Jobs as Coder workspaces
Installed by curl
And running
How to add coder to docker socket?
Uh
Are you running coder as a system service?
OR via CLI
coder server
Solution
in both cases you need to add the coder user to the docker group.
https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user
Docker Documentation
Linux post-installation steps for Docker Engine
Find the recommended Docker Engine post-installation steps for Linux users, including how to run Docker as a non-root user and more.
I am running system service
Systemctl
Thanks
It works
@Atif closed the thread.