How to run an LXC container inside a Docker container

How do I run an LXC container inside a docker container - end-to-end - using a shared network? Ideally I would like to do this from Debian or Ubuntu. Some of the problems I found when trying to do this:

  • lxc-net does not start when installed in a Docker container, so the bridge is lxcbr0

    never created. A partial workaround is to manually create the bridge.
  • The lxc containers won't start because of cgroupfs failed to detect cgroup metadata

    even if I manually mount the group viamount -n -t tmpfs -o uid=0,gid=0,mode=0755 cgroup /sys/fs/cgroup

+3


source to share


1 answer


Take a look at the flag --privileged

on docker container documents



0


source







All Articles