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

Fix Kind issue in Moby/Docker 27 in .devcontainer #51

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

mathieu-benoit
Copy link
Contributor

When running make kind-create-cluster or kind create cluster, with the current default/latest version of Moby/Docker 27 in .devcontainer, we get this error:

Creating cluster "kind" ...
ERROR: failed to create cluster: 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
Command Output: 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-4a6862c950c4 -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))

This fix consists to fall back to the previous version of Moby/Docker 26 working for now in .devcontainer.

@mathieu-benoit mathieu-benoit requested a review from a team as a code owner September 6, 2024 01:22
@louisbennett louisbennett merged commit 6580968 into main Sep 6, 2024
2 checks passed
@louisbennett louisbennett deleted the fix-kind-in-devcontainer branch September 6, 2024 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants