Created
August 2, 2019 00:03
-
-
Save leveled/a23923b3db600c6cc46bdae6f81a3556 to your computer and use it in GitHub Desktop.
LXD Cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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