Skip to content

Instantly share code, notes, and snippets.

@leveled
Created August 2, 2019 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leveled/a23923b3db600c6cc46bdae6f81a3556 to your computer and use it in GitHub Desktop.
Save leveled/a23923b3db600c6cc46bdae6f81a3556 to your computer and use it in GitHub Desktop.
LXD Cheatsheet
#basic creation start up of conatiners
lxc launch ubuntu:18.04 first
lxc list
lxc exec first -- /bin/bash
lxc file pull first/etc/hosts .
lxc file push hosts first/tmp/
lxc stop first
lxc delete first
#list remote images
lxc remote list
lxc image list images:
#manually importing an image
lxc image import <file> --alias my-alias
lxc launch my-alias my-container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment