Can docker run inside a Linux Container? - Stack Overflow
stackoverflow.com › questions › 22085657Feb 28, 2014 · Yes, docker can run in a linux container. But docker will only run with the lxc execution driver and in a unconfined lxc.. So, here's how to get docker in LXC: Ensure you have lxc.aa_profile = lxc-container-default-with-nesting (if it doesn't work or you don't have this profile, try lxc.aa_profile = unconfined) in the config file of your LXC to ensure it will not be blocked by apparmor.