Skip to content

Instantly share code, notes, and snippets.

@nelsnelson
Created April 10, 2014 19:12
Show Gist options
  • Save nelsnelson/10413231 to your computer and use it in GitHub Desktop.
Save nelsnelson/10413231 to your computer and use it in GitHub Desktop.
Nested containers not visible in host
# lxc-create -n outer -t minimal
# lxc-start -n outer -d
# lxc-attach -n outer -- bash
bash-4.2# mkdir /var/lib/lxc
bash-4.2# lxc-create -n inner -t minimal
bash-4.2# lxc-start -n inner -d
bash-4.2# lxc-attach -n inner -- bash
bash-4.2# ls /sys/fs/cgroup
blkio cpu cpuacct cpuset devices freezer hugetlb hugetlb,net_prio,perf_event,blkio,freezer,devices,memory,cpuacct,cpu,cpuset memory net_prio perf_event
bash-4.2#
#
# Meanwhile in the host
#
# lxc-ls --fancy
NAME STATE IPV4 IPV6 AUTOSTART
-----------------------------------------
outer RUNNING - - NO
# lxc-attach -n outer -- lxc-ls --fancy
NAME STATE IPV4 IPV6 AUTOSTART
-------------------------------------
inner RUNNING - - NO
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment