From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 2 File Access, Storage, and Security
Unlock the full course today
Join today to access over 23,300 courses taught by industry experts.
Managing containers
From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 2 File Access, Storage, and Security
Managing containers
- [Narrator] Containers are in effect distributable isolated processes and you can interact with them in a similar manner. You can start, stop, and get the status of a container just as you would a program. To run a command in a container, you will use the podman run command. The most common options are -d, which detaches from the shell and runs the container in the background. The only output is the container ID. - a runs the container in the foreground attaching to the current shell. - n assigns a name to the container, making it easier to manage with subsequent commands. - rm automatically removes the container when the command exits. Note that this is a long option with two dashes. - t allocates and attaches the pseudo terminal to the standard input of the container. And lastly, -i is for interactive processes. It is common to use -i and -t together to allocate a terminal for the container process. Let's start a…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
About containers on Enterprise Linux7m 2s
-
(Locked)
Retrieve container images from a remote registry6m
-
(Locked)
Inspect container images1m 46s
-
(Locked)
Managing containers3m 53s
-
(Locked)
Working with container images9m 39s
-
(Locked)
Build a container from a container file7m 6s
-
(Locked)
Configure a container to start automatically as a systemd service6m 55s
-
(Locked)
Attach persistent storage to a container4m 9s
-
(Locked)
-