From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep

Unlock this course with a free trial

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

Create and manage containers

Create and manage containers

To get a glimpse of their usefulness, just think about a database server that we can create with MariaDB the classic way, we install it with a sudo apt install mariadb-server command. Then we configure its settings by modifying files in the /etc/mysql/ directory. the logs, and the database. All we would need to do is copy this container to some other computer and everything will work exactly the same as it did before. Containers encapsulate applications. This makes them portable and easy to move around, as easy as copying and pasting a file from one location to another. Once we're happy with a containerized application, we can deploy it to tens of different servers at scale. The same thing that Kubernetes does and part of the reason why it's so popular, to understand how to work with Docker. Let's jump right into some practical examples, and it's easier to make sense of how containers work if we see them in action. We'll explore how to run an NGINX web server in a container. But…

Contents