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

Ensure that /proc/sys/net is writable #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AndrewKvalheim
Copy link
Member

Docker fails to create containers when /proc/sys/net is read-only:

level=error msg="Cannot disable IPv6 on container interface." error="open /proc/sys/net/ipv6/conf/eth0/disable_ipv6: read-only file system" interface=eth0

The Docker 27.0.1 release notes suggest three workarounds:

  • configure the OS to disable IPv6 by default on new interfaces

    This had no effect; Docker still attempted to write into /proc/sys/net, needlessly.

  • mount /proc/sys/net read-write

    This is possible since we’re already using CAP_SYS_ADMIN.

  • use a kernel with no IPv6 support

    This caused Dokku’s nginx configurations to become invalid, as they listen on IPv6 by default.

Works around failure of Docker to create containers (moby/moby#47769)—

    level=error msg="Cannot disable IPv6 on container interface." error="open /proc/sys/net/ipv6/conf/eth0/disable_ipv6: read-only file system" interface=eth0

—as suggested in the Docker Engine 27.0.1 release notes.
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.

1 participant