Remove Container or Pod Group
Using the Podman page, Cockpit users can choose to remove a single container or a pod group of containers.
What Do You Need?
- The Cockpit web console must be installed and accessible.
For details, see these topics: Install and Enable Cockpit and Log in to the Cockpit Web Console.
- The Podman container tools must be installed on the host system. For information on how to install Podman, see Installing Podman and Related Utilities in Oracle Linux: Podman User's Guide.
- The Cockpit-Podman add-on application must be installed. For further information on how to configure the Cockpit web console to interact with Podman, see Install and Configure Cockpit-Podman.
- Stop the container to be remove. For more details, see Rename, Pause, Stop, or Restart Container.
- Users with limited access privileges can only remove containers and pod groups they created. For more details, see Special Considerations for Non Administrator Containers
Steps
Using the Cockpit web console, follow these steps to remove a single container or the containers associated with a pod group.
- In the Cockpit navigation pane, click Podman.
The Podman page appears.
- In the Podman page, navigate to the Container table.
- In the Container table, perform any of the following:
- Remove a single container: Find the row with the stopped container and select
Delete from actions [⋮] menu.
- Find the row with the stopped container.
- In the stopped container row, select Delete from the
actions [⋮] menu.
A dialog appears confirming that you want to delete the container.
- In the dialog, click Delete.
- Remove a container in a pod group.
- Find the pod group row with a stopped container.
- In the stopped container row, select Delete from the
actions [⋮] menu.
A dialog appears confirming that you want to delete the container.
- In the dialog, click Delete.
- Remove a pod group and all containers.
- Find the row with the stopped pod group.
- In the row with the stopped pod group, select Delete from
actions [⋮] menu.
A dialog appears confirming that you want to delete the pod group and all the containers in that group.
- In the dialog, click Delete.
- Remove a single container: Find the row with the stopped container and select
Delete from actions [⋮] menu.