Skip to Content
Mastering Ubuntu Server - Second Edition
book

Mastering Ubuntu Server - Second Edition

by Jay LaCroix
May 2018
Intermediate to advanced
552 pages
14h 55m
English
Packt Publishing
Content preview from Mastering Ubuntu Server - Second Edition

Managing LXD containers

With Docker out of the way, let's take a look at how to run containers with LXD. Let's dive right in and install the required package:

sudo snap install lxd

As you can see, installing LXD is just as easy as installing Docker. In fact, managing containers with LXD is very straightforward as well, as you'll soon see. Installing LXD gives us the lxc command, which is the command we'll use to manage LXD containers. Before we get going though, we should add our user account to the lxd group:

sudo usermod -aG lxd <yourusername>

Make sure you log out and log in for the changes to take effect. Just like with the docker group with Docker, the lxd group will allow our user account to manage LXD containers.

Next, we need to initialize ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Ubuntu Server - Third Edition

Mastering Ubuntu Server - Third Edition

Jay LaCroix
Linux Server Hacks, Volume Two

Linux Server Hacks, Volume Two

William von Hagen, Brian K. Jones

Publisher Resources

ISBN: 9781788997560Other