Docker错误:无法使用execxriver-native-0.2来使用-lxc-conf
我的要求是我想为容器提供静态IP。
我使用LXC-conf, 如下面的链接来设置IP DHCP / Static。
我是lakuakan
docker run \ --net="none" \ --lxc-conf="lxc.network.type = veth" \ --lxc-conf="lxc.network.ipv4 = 192.168.23.38" \ --lxc-conf="lxc.network.ipv4.gateway = 192.168.23.1" \ --lxc-conf="lxc.network.link = dkr01" \ --lxc-conf="lxc.network.name = eth0" \ --lxc-conf="lxc.network.flags = up" \ --lxc-conf="lxc.network.veth.pair = sts" -h sts \ --name sts \ -d ubuntu_erp:latest
执行最后一个语法时,出现错误“来自守护程序的错误响应:不能使用-lxc-conf和execdriver:native-0.2”
docker run \ --net="none" \ --lxc-conf="lxc.network.type = veth" \ --lxc-conf="lxc.network.ipv4 = 192.168.23.38" \ --lxc-conf="lxc.network.ipv4.gateway = 192.168.23.1" \ --lxc-conf="lxc.network.link = dkr01" \ --lxc-conf="lxc.network.name = eth0" \ --lxc-conf="lxc.network.flags = up" \ --lxc-conf="lxc.network.veth.pair = sts" -h sts \ --name sts \ -d ubuntu_erp:latest Error response from daemon: Cannot use --lxc-conf with execdriver: native-0.2
我寻求帮助,为了我所需要的。
也许你有一个可靠的docker工人,可以帮助解决我的需求。 想要根据本地Intranet提供DHCP IP。