You probably can not wait to get started with a container. There are many container operating system possibilities. To get a feel for how many possibilities, enter this command:
lxc image list images: | more
Enter the space bar to page through the list. This list of containers and virtual machines continues to grow.
The last thing you want to do is to page through looking for a container image to install, particularly if you know the image that you want to create. Change the command to show only Rocky Linux install options:
For the first container, you are going to use "rockylinux/8". To install it, you might use:
lxc launch images:rockylinux/8 rockylinux-test-8
That will create a Rocky Linux-based container named "rockylinux-test-8". You can rename a container after creating it, but you first need to stop the container, which starts automatically when created.
To start the container manually, use:
lxc start rockylinux-test-8
To Rename the image (we are not going to do this here, but this is how to do it) first stop the container:
lxc stop rockylinux-test-8
Use the move command to change the container's name:
lxc move rockylinux-test-8 rockylinux-8
If you followed this instruction anyway, stop the container and move it back to the original name to continue to follow along.
For the purposes of this guide, go ahead and install two more images for now: