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

ipv6 forwarding prevents the daemon to run when ipv6 is disabled in kernel #1266

Open
ProfessionalismIsMyMiddleName opened this issue Feb 15, 2024 · 1 comment
Assignees

Comments

@ProfessionalismIsMyMiddleName

πŸ‘» Brief Description

The

ExecStartPre=/sbin/sysctl -w net.ipv6.conf.all.forwarding=1

line added to the docker service file prevents the docker service to start if ipv6.disable=1 has been set in the kernel.

πŸ₯ž Cookbook version

11.3.0

πŸ‘©β€πŸ³ Chef-Infra Version

18.1.0

🎩 Platform details

ubuntu server 22.04

Steps To Reproduce

Steps to reproduce the behavior:

  1. Add GRUB_CMDLINE_LINUX="ipv6.disable=1" in /etc/default/grub, then sudo update-grub
  2. reboot
  3. Try to deploy the cookbook
  4. See error

πŸš“ Expected behavior

docker service starts properly

βž• Additional context

Is it still necessary to add ipv6 forwarding by calling sysctl?
Isn't there any other way to do it?
This could be fixed by adding -e to the sysctl calls without impacting unaffected users.

@damacus
Copy link
Member

damacus commented Jan 31, 2025

All of this is a sensible set of questions.

Is it still necessary to add ipv6 forwarding by calling sysctl?
See below ‡

Isn't there any other way to do it?
I've not investigated other ways of doing it but if you know another way, please fee free to suggest alternatives.

This could be fixed by adding -e to the sysctl calls without impacting unaffected users
Try this locally, and report back

@damacus damacus self-assigned this Jan 31, 2025
@damacus damacus added Bug Something isn't working and removed Bug Something isn't working labels Jan 31, 2025
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

No branches or pull requests

2 participants