How to disable IPv6 inside a container/pod without effecting others and host OS in OpenShift

Solution Verified - Updated -

Issue

  • How do I disable or enable the IPv6 protocol inside a container or pod without effecting others?
  • I got below error When I run sysctl command to attempt to disable or enable IPv6 inside the container.

    sysctl: setting key "net.ipv6.conf.all.disable_ipv6": Read-only file system
    

Environment

  • OpenShift Container Platform 3.7 or later

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.