Intro into LXD - Linux Containers

in linux •  7 years ago  (edited)

Installation

sudo apt-get install lxd
sudo yum install lxd
sudo dnf install lxd

Configure your user

Make sure to add your username to the lxd group. This allows you to use lxc commands with needing privileged access.

Examples

lxc init
First step is to create container defaults.

lxc image list images:

lxc launch ubuntu:16.04
Create and run ubuntu 16.04 container.

lxc list
See running containers.

lxc stop name
Stop a container by its name.

lxc delete name
Remove a container's contents/files.

Links

https://insights.ubuntu.com/2016/03/22/lxd-2-0-your-first-lxd-container/

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!