Skip to content

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