openstack-ansible/doc/source/reference/commands/reference.rst
Jean-Philippe Evrard 4db3962281 [Docs] Migrate CLI reference to reference guide
The CLI usage shouldn't probably be directly given into guides,
but should instead be moved into reference.

Change-Id: I7085591f147d7dc0ff2c63be3380a06e6387e6b9
2018-02-20 08:03:56 +00:00

860 B

Command Line Reference

Linux Container commands

The following are some useful commands to manage LXC:

  • List containers and summary information such as operational state and network configuration:

    # lxc-ls --fancy
  • Show container details including operational state, resource utilization, and veth pairs:

    # lxc-info --name container_name
  • Start a container:

    # lxc-start --name container_name
  • Attach to a container:

    # lxc-attach --name container_name
  • Stop a container:

    # lxc-stop --name container_name

Systemd nspawn commands