cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
815
Views
0
Helpful
1
Replies

How to disable ipv6 in a container on GOS.

Hi

 

I am running the lxc container on IR829 GOS.
Ipv6 is automatically enabled on eth0 in the container.
I want to disable it.
Is there any way?

 

I did "[app -> resources -> network -> ipv6_required: false]" on this page, but it didn't work.
https://developer.cisco.com/docs/iox/#!package-descriptor/yaml-template

1 Reply 1

Alex Stevenson
Cisco Employee
Cisco Employee

I recommend to try adding the following to the Docker Compose:

 

sysctls:
  - net.ipv6.conf.all.disable_ipv6=1

 

It used to be the following , but was changed for version3 compose files:

 

network:
  - enable_ipv6: false