Skip to content

Instantly share code, notes, and snippets.

@kay21s
Created January 22, 2015 23:45
Show Gist options
  • Save kay21s/cb32809a258429ef4dd3 to your computer and use it in GitHub Desktop.
Save kay21s/cb32809a258429ef4dd3 to your computer and use it in GitHub Desktop.
Linux Container
LXC depends on the control group filesystem being mounted. The standard location for it is /sys/fs/cgroup.
Containers are stored in /var/lib/lxc/CONTAINER_NAME directory.
The main configuration file is /var/lib/lxc/CONTAINER_NAME/config
root filesystem under /var/lib/lxc/CONTAINER_NAME/rootfs
List Container:
lxc-ls -f
lxc-start -n CONTAINER_NAME -d
Major Number, Minor Number
crw-rw-rw- 1 root root 195, 0 Jan 21 14:52 nvidia0
crw-rw-rw- 1 root root 195, 255 Jan 21 14:52 nvidiactl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment