Skip to content

k3d cluster creation fails in codespaces #689

@Reshrahim

Description

@Reshrahim

User facing docs - https://docs.radapp.io/getting-started/

There seems to be an issue with k3d cluster creation when we spin up a devcontainer via codespaces.
Error from the creation log

2023-10-24 13:40:27.779Z: ERRO[0001] Failed to get nodes for cluster 'k3s-default': docker failed to get containers with labels 'map[k3d.cluster:k3s-default]': failed to list containers: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2023-10-24 13:40:27.816Z: INFO[0000] portmapping '8081:80' targets the loadbalancer: defaulting to [servers:*:proxy agents:*:proxy]
2023-10-24 13:40:27.817Z: ERRO[0000] Failed to get nodes for cluster 'k3s-default': docker failed to get containers with labels 'map[k3d.cluster:k3s-default]': failed to list containers: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2023-10-24 13:40:27.817Z: INFO[0000] Prep: Network                                
2023-10-24 13:40:27.818Z: ERRO[0000] Failed Cluster Preparation: Failed Network Preparation: failed to create cluster network: failed to check for duplicate docker networks: docker failed to list networks: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
ERRO[0000] Failed to create cluster >>> Rolling Back

when I ran the cluster create command manually in the codespaces, the cluster got created succesfully. Not sure whats happening in the post create script.

May be a permission issue or a readiness issue?

AB#9902

Metadata

Metadata

Assignees

Labels

triagedThis item has been triaged by project maintainers and is in the backlog

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions