LXD, or the Linux Container Daemon, lets us leverage the resource-light LXC virtualization method, as well as providing additional support for the container images we use to spin up our containers. In this lab, we’ll pull down and cache two separate images, then create a series of containers based on these images.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Copy the Alpine Linux Image
Copy the image to the LXD server, ensuring to provide an alias:
lxc image copy images:alpine/edge local: --alias alpine
- Copy the Ubuntu Image
Copy the image to the LXD server, ensuring to provide an alias:
lxc image copy ubuntu: local: --alias ubuntu
- Launch the Alpine Linux Container
Launch a new container, called
alpine-test
:lxc launch alpine alpine-test
- Launch the Ubuntu Container
Launch the
ubuntu-test
container:lxc launch ubuntu ubuntu-test