Pergunta

i was using -lxc-conf="lxc.network.hwaddr=00:21:6a:81:17:d6" to specify the MAC address that the container should use.

From 0.9 it stopped working... any idea if there is any other way to accomplish this in 0.9?

Thanks

Foi útil?

Solução

Before 0.9, Docker was using LXC as "backend driver", that allowed almost any raw LXC option to be passed as-is.

The 0.9 release includes an internal implementation of Cgroups and namespaces, Docker thus skips the LXC layer to "talk" directly with the low-level containerization tools.

I don't know yet how to pass advanced options to this internal implementation/driver (libcontainer), but you can tell Docker to keep using LXC (still supported) using the following startup option:

    docker --daemon=true -e lxc

You could check if your distribution has a /etc/defaults/docker configuration file where you could add this -e parameter and then restart docker (service docker restart)

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top