# Run Containers ## Dennis Kibbe ### Mesa Community College Note: This slide presentation was created using [Reveal.js](https://revealjs.com). You can access a transcript of this presentation by pressing s for speaker notes. You can access navigation help by pressing the question mark key. Audio for this presentation is artificially generated. --- # Module Outline 1. Introduction 1. Container Concepts 1. Deploy Containers 1. Manage Container Storage and Network Resource 1. Manage Containers as System Services 1. Key Takeaways 1. Resources 1. Graded Lab Note: --- # Learning Objectives *After completing the work in this module you will be able to:* 1. Explain container concepts and the core technologies for building, storing, and running containers. 1. Discuss container management tools for using registries to store and retrieve images, and for deploying, querying, and accessing containers. 1. Provide persistent storage for container data by sharing storage from the container host, and configure a container network. 1. Configure a container as a `systemd` service, and configure a container service to start at boot time. Note: --- # Introduction ## Run Containers Note: --- # Container Concepts Note: --- # Quiz ## Container Concepts ![Clipart of a clipboard and pencil](../images/clipboard-check.png) Note: --- # Deploy Containers Note: --- # Guided Exercise ## Deploy Containers ![Clipart of two students studying](../images/homework.png) Note: --- # Manage Container Storage and Network Resources Note: --- # Guided Exercise ## Manage Container Storage and Network Resources ![Clipart of two students studying](../images/homework.png) Note: --- # Manage Containers as System Services Note: --- # Guided Exercise ## Manage Containers as System Services ![Clipart of two students studying](../images/homework.png) Note: --- # Key Takeaways 1. Containers provide a lightweight way to distribute and run an application with its dependencies so that it does not conflict with installed software on the host. 1. Containers run from container images that you can download from a container registry or create yourself. 1. You can use container files with instructions to build a customized container image. 1. Podman, which Red Hat Enterprise Linux provides, directly runs and manages containers and container images on a single host. 1. Containers can be run as `root`, or as non-privileged rootless containers for increased security. 1. You can map network ports on the container host to pass traffic to services that run in its containers. 1. You can use environment variables to configure the software in containers at build time. 1. Container storage is temporary, but you can attach persistent storage to a container by using the contents of a directory on the container host, for example. 1. You can configure a `systemd` unit file to automatically run containers when the system starts. Note: --- # Resources Note: Here are some resources for the topics covered in this chapter. --- # Graded Lab ## Run Containers ![Clipart of technicians in white lab coats](../images/lab_techs.png) Note: --- ![Mesa Community College logo](../images/mcc_logo.png "Mesa Community College") Note: This ends this slide presentation. I hope you found it useful.