My host is Ubuntu 16.04.1 LTS with privileged container.
I want to disable ipv6 of container, so I created a config file on /etc/sysctl.d/60-disable-ipv6.conf
, I have tried lxc-start
and lxc-stop -r
my container, container's ipv6 is not disabled until run sudo sysctl -p /etc/sysctl.d/60-disable-ipv6.conf
, it works, ipv6 address is disabled.
Why container doesn't load /etc/sysctl.d/*.conf
?
systemd-sysctl.service
might be disabled - if available at all.systemctl status systemd-sysctl.service
tell you anything about the service and if it failed?ConditionPathIsReadWrite=/proc/sys/ was not met
, so I addedlxc.mount.auto = proc
orlxc.mount.auto = proc:rw
, it doesn't work, I still could view/proc/sys
in container.