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

add: iptables in DinD image #1298

Merged
merged 1 commit into from
Aug 3, 2023
Merged

Conversation

rojomisin
Copy link
Contributor

What

adds iptables package to the k3d image

Why

When attempting to run on OS X Docker 20.x, I was getting the error:

docker run --privileged --name=k3d --hostname=k3d -p 6443:6443  rancher/k3d 
...
subject=CN = docker:dind client
Getting CA Private Key
/certs/client/cert.pem: OK
ip: can't find device 'ip_tables'
modprobe: can't change directory to '/lib/modules': No such file or directory

...
level=warning msg="Running iptables --wait -t nat -L -n failed with message: `iptables v1.8.7 (legacy): can't initialize iptables table `nat': iptables who? (do you need to insmod?)\nPerhaps iptables or your kernel needs to be upgraded.`, error: exit status 3"

Implications

seems like a safe fix on my custom built image

Copy link
Member

@iwilltry42 iwilltry42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't see that needed before, but won't harm. The DinD image is for testing/dev mostly, so shouldn't be critical.
Thanks @rojomisin !

@iwilltry42 iwilltry42 changed the title add iptables add: iptables in DinD image Aug 3, 2023
@iwilltry42 iwilltry42 merged commit fb31ac5 into k3d-io:main Aug 3, 2023
tesla59 pushed a commit to tesla59/k3d that referenced this pull request Aug 10, 2023
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.

None yet

2 participants