LXD 3.0 Container with Static IP

  • Use init instead of launch to create new container.
    lxc init ubuntu:18.04 c1
  • Attach network
    lxc network attach lxdbr0 c1 eth0
  • Configure static IP
    lxc config device set c1 eth0 ipv4.address
  • Enable docker
    lxc config set docker01 security.nesting true
    lxc config set docker01 security.privileged true
  • Start docker
    lxc start c1


Written on June 24, 2018