Skip to content

Instantly share code, notes, and snippets.

@Oodnadatta
Last active June 27, 2018 09:03
Show Gist options
  • Select an option

  • Save Oodnadatta/68e92aaca6d3e52f54e241ac46bddac0 to your computer and use it in GitHub Desktop.

Select an option

Save Oodnadatta/68e92aaca6d3e52f54e241ac46bddac0 to your computer and use it in GitHub Desktop.
Commands to launch an LXC container

To create and start the container

lxc-create -n NomDuConteneur -t download -- -d ubuntu -r xenial -a amd64
lxc-start -n NomDuConteneur
lxc-attach -n NomDuConteneur

Ctrl+D to quit the container

To quit and delete the container

lxc-stop -n NomDuConteneur
lxc-destroy -n NomDuConteneur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment