From the course: Building a Home IT Lab

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Working with Linux containers

Working with Linux containers

From the course: Building a Home IT Lab

Working with Linux containers

- [Narrator] To work with lxc, we'll use the lxc command. I can create a new container from an existing container image using the command lxc launch, and then the name of an image and optionally the version of the image. That looks like this. I'll cancel this for a moment, though, while we explore where to get images. The image name comes from repositories called remotes that we can add and remove from the system. By default, lxc comes with a few configured and we can list those with lxc remote list. The name of the remote is here in this first column and you can see what's available on a particular remote with lxc image list, and for example, ubuntu, taking the name from this remote. And here I see a very long list of images that are available. If I zoom out here, you can see the tabular view, but I'll zoom back in so we can see what I'm typing. I'll clear my screen. Let's start up two containers using Ubuntu version 24.04. To do that, I'll write the command that I showed you before.…

Contents