Docker Community Forums

Share and learn in the Docker community.

Network option for daemon.json

Wondering, whether we can get docker work like LXCs wrt. network, e.g.:

lxc.net.0.type = macvlan
lxc.net.0.macvlan.mode = bridge
lxc.net.0.link = oneag0
lxc.net.0.flags = up
lxc.net.0.hwaddr = 00:80:41:18:0a:40
lxc.net.0.name = r0

‘oneag0’ is the netdev, to which the netdev of the container, i.e. a macvlan named ‘r0’, gets connected to. (‘r0’ gets automatically created by lxc on lxc-start).

Any hints? And is it possible to put those “properties” as defaults into daemon.json (w/o hwaddr and name of course)?