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

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…

Contents