Created
April 10, 2014 19:12
-
-
Save nelsnelson/10413231 to your computer and use it in GitHub Desktop.
Nested containers not visible in host
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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