Intro into LXD - Linux Containers

in #linux7 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/

Coin Marketplace

STEEM 0.16
TRX 0.16
JST 0.030
BTC 57726.29
ETH 2446.50
USDT 1.00
SBD 2.39