Skip to content

Instantly share code, notes, and snippets.

@physacco
Created April 16, 2013 03:16
Show Gist options
  • Select an option

  • Save physacco/5393087 to your computer and use it in GitHub Desktop.

Select an option

Save physacco/5393087 to your computer and use it in GitHub Desktop.
All lxc commands found on our server.

Commands

lxc                  convenience Wrapper for LXC programs
lxc-attach           start a process inside a running container
lxc-cgroup           manage the control group associated with a container
lxc-checkconfig      check the current kernel for lxc support
lxc-checkpoint       checkpoint a running container (not implemented yet)
lxc-clone            clone a new container from an existing one
lxc-console          Launch a console for the specified container
lxc-create           creates a container
lxc-debconfig        LXC template to create Debian and Debian based containers
lxc-destroy          destroy a container
lxc-execute          run an application inside a container
lxc-freeze           freeze all the container's processes
lxc-halt             shutdown Linux Containers by state
lxc-info             query information about a container
lxc-kill             Send a signal to the process 1 of the container
lxc-list             list Linux Containers by state
lxc-ls               list the containers existing on the system
lxc-monitor          monitor the container state
lxc-netstat          run netstat for the specified container
lxc-ps               list the processes belonging to a specific container
lxc-restart          restart a container from a file (not implemented yet)
lxc-shutdown         externally shut down or reboot a container
lxc-start            run an application inside a container
lxc-stop             stop the application running inside a container
lxc-unfreeze         thaw all the container's processes
lxc-unshare          Run a task in a new set of namespaces
lxc-version          print the currently installed lxc version
lxc-wait             wait for a specific container state

Versions

debian 6.0.7
Linux 3.2.39 x86_64
lxc version: 0.9.0.alpha3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment