Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Codespaces - failed to ensure docker network #386

Closed
OneCricketeer opened this issue Sep 10, 2024 · 2 comments · Fixed by #419
Closed

[Bug]: Codespaces - failed to ensure docker network #386

OneCricketeer opened this issue Sep 10, 2024 · 2 comments · Fixed by #419
Labels
bug Something isn't working help wanted Extra attention is needed
Milestone

Comments

@OneCricketeer
Copy link

What is your environment, configuration, and command?

idpbuilder 0.7.0 go1.21.3

Fresh installation following Quickstart Guide, trying to use Codespaces.

What did you do and What did you see instead?

idpbuilder create fails to create a Docker network in Codespaces

Sep 10 01:41:21 INFO Creating kind cluster logger=setup 
Sep 10 01:41:21 INFO Runtime detected logger=setup provider=docker 
########################### Our kind config ############################
# Kind kubernetes release images https://github.com/kubernetes-sigs/kind/releases
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
  image: "kindest/node:v1.30.0"
  labels:
    ingress-ready: "true"
  extraPortMappings:
  - containerPort: 443
    hostPort: 8443
    protocol: TCP
  
containerdConfigPatches:
- |-
  [plugins."io.containerd.grpc.v1.cri".registry.mirrors."gitea.cnoe.localtest.me:8443"]
    endpoint = ["https://gitea.cnoe.localtest.me"]
  [plugins."io.containerd.grpc.v1.cri".registry.configs."gitea.cnoe.localtest.me".tls]
    insecure_skip_verify = true
#########################   config end    ############################
Sep 10 01:41:21 INFO Creating kind cluster logger=setup cluster=localdev 
Sep 10 01:41:21 ERROR Error starting kind cluster logger=setup err=failed to ensure docker network: command "docker network create -d=bridge -o com.docker.network.bridge.enable_ip_masquerade=true -o com.docker.network.driver.mtu=1500 --ipv6 --subnet fc00:f853:ccd:e793::/64 kind" failed with error: exit status 1 
Error: failed to ensure docker network: command "docker network create -d=bridge -o com.docker.network.bridge.enable_ip_masquerade=true -o com.docker.network.driver.mtu=1500 --ipv6 --subnet fc00:f853:ccd:e793::/64 kind" failed with error: exit status 1
failed to ensure docker network: command "docker network create -d=bridge -o com.docker.network.bridge.enable_ip_masquerade=true -o com.docker.network.driver.mtu=1500 --ipv6 --subnet fc00:f853:ccd:e793::/64 kind" failed with error: exit status 1

Running that command directly shows an IPTables error

$ docker network create -d=bridge -o com.docker.network.bridge.enable_ip_masquerade=true -o com.docker.network.driver.mtu=1500 --ipv6 --subnet fc00:f853:ccd:e793::/64 kind
Error response from daemon: Failed to Setup IP tables: Unable to enable NAT rule:  (iptables failed: ip6tables --wait -t nat -I POSTROUTING -s fc00:f853:ccd:e793::/64 ! -o br-3063696e3735 -j MASQUERADE: ip6tables v1.8.7 (legacy): can't initialize ip6tables table `nat': Table does not exist (do you need to insmod?)
Perhaps ip6tables or your kernel needs to be upgraded.
 (exit status 3))

Tried to look at the devcontainer config + postInstall script, but would be great if this worked as documented.

Additional Information. Logs.

No response

@OneCricketeer OneCricketeer added the bug Something isn't working label Sep 10, 2024
@MichaelSp
Copy link

@nabuskey
Copy link
Collaborator

Might be related to this. #356
There must have been an update to codespaces vm image. I will have to investigate.

@nabuskey nabuskey added the help wanted Extra attention is needed label Sep 10, 2024
@nabuskey nabuskey added this to the v1.0.0 milestone Oct 15, 2024
@nabuskey nabuskey moved this to Backlog in idpbuilder Oct 15, 2024
@github-project-automation github-project-automation bot moved this from Ready to Done in idpbuilder Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants