小编Ace*_*Ace的帖子

Modifying sysctl values inside lxc container

I have made several linux containers using the normal userspace tools (not docker), and I have been setting up a test environment.

I want to set up two containers to try out heartbeat, which requires the containers to bind to and ip address that is not yet configured, namely net.ipv4.ip_nonlocal_bind=1

Everytime I try it, it says something like this:

user@lxc1:~$ sudo sysctl -w net.ipv4.ip_nonlocal_bind=1
sysctl: cannot stat /proc/sys/net/ipv4/ip_nonlocal_bind: No such file or directory
Run Code Online (Sandbox Code Playgroud)

Also modifying the sysctl.conf file doesnt help. …

networking container lxc

5
推荐指数
1
解决办法
4282
查看次数

标签 统计

container ×1

lxc ×1

networking ×1