Skip to content

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

@ProfessionalismIsMyMiddleName

Description

πŸ‘» 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions