
explore how linux containers with lxc and lxd differ from virtual machines, delivering direct hardware access, no hypervisor, rapid deployment, and scalable, multi-distribution environments.
Install lxd and lxd-client on ubuntu or yum on red hat, verify the version, then run lxd init to configure a storage pool, dir backend, and network bridge (lxdbr0) for networked lxc.
Check existing containers with lxc list and verify permissions. Launch Alpine 3.12 from images using lxc launch to create a running container named Alpine with its IP address and fingerprint.
Start, stop, and delete images and containers using Aleksi commands, check status with list, manage IP addresses, and create named containers to avoid confusion.
Access the Ingenix container, log in with a shell, edit its config, install and start the web server, push index.html to /var/www, and verify the site.
Create and view snapshots of running containers, restore to previous states, clone new containers from snapshots, and delete outdated snapshots to manage web servers with LXD.
Learn how to manage remotes and view image repositories with Aleksi, filter images by Debian distributions, copy fingerprints, and start a Debian container to explore contents.
Set up a two-server LXD environment by bridging networks in VirtualBox, installing LXD, and adding a remote with IP address, port 8443, password, and the accept certificate option.
Validate inter-container connectivity with ping tests and DNS name resolution, then examine how a network bridge and virtual ethernet adapters route packets between two web servers and engine containers.
Export a working container image from a snapshot and inspect its metadata and templates. Import the image, start a new container, and verify the web server responds at its IP.
Create your own Debian image by exporting or bootstrapping a Debian system, applying metadata and templates with Aleksi, then importing and launching the image as a container.
Explore how Linux containers access hardware resources directly, unlike virtual machines, and use the free command to compare memory; learn container memory limits.
Explore how lxc/lxd stores containers, images, and snapshots under var/snap, inspect the containers and snapshots directories, and see how host file edits reflect inside containers.
Learn how to manage storage pools in LXD by listing, describing, and creating storage pools; assign containers to pools, view usage, and customize the display.
Learn how to create and use storage pools beyond a directory pool, including btrfs, lvm, and zfs formats, attach a second disk, and run containers in the new pool.
We conclude the linux containers course. Feel free to send questions by message; I will answer soon, and if you enjoyed it, please leave a positive rating.
Linux Containers, or LXC for short, is the classic entry-level topic for DevOps. In the DevOps area, container technologies are an absolute must. The best-known container technology is likely to be Docker. What many don't know: Up to version 0.8, Docker was essentially based on LXC. LXC is the basis for Docker and so it is of course an absolute advantage if you can handle LXC / LXD.
This course starts with the basics of LXC. What is it and what is it used for? Then it goes straight to practice.
We install LXC together and carry out the corresponding basic configurations. After that we download our first images and start, stop and edit our first containers.
Using various scenarios, we gradually get to know the commands from LXC and continue to deepen our knowledge.
We create containers, edit them, create our own images and use ready-made images. We will also configure and use our own remote server. We also deal with the topics of snapshots, networking and storage pools.
By the end of this course, you will be able to use LXC confidently and competently.