Inspect Container and Access Container Logs and CLI

Using the Podman page, Cockpit users can inspect container configuration details, log files, and interact with the container CLI as needed.

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.
  • One or more containers or pod groups must already exist in the Container table. For information on how to create a container or a pod group, see Create and Run Container or Create a Pod Group.
  • Administrators or root users can access and change all containers and pods groups. Users with limited access privileges can access and change only the containers and pod groups that they created.

Steps

Using the Cockpit web console, follow these steps to view container details, generated log files, and gain access to the container CLI.

  1. In the Cockpit navigation pane, click Podman.

    The Podman page appears.

  2. In the Podman page, navigate to the Container table.
  3. In the Container table, find the container that want you to view and then perform the following:
    1. In the container row, view the following properties:
      • Container name.
      • Container owner (system or user)
      • Container usage properties for CPU and memory.
      • Container state (created, running, stopped, and so on)
    2. Click the arrow icon next to container name to view further details about the container. The row expands with the following properties:
      Details tab Use the Details tab to view the container ID, creation date, image file path, runtime command, and the container process state. In addition, the following properties are viewable for system containers: IP address, MAC address, and Gateway address.
      Integration tab User the Integration tab to view the environment variables, port mappings, and configured volumes associated with the container.
      Logs tab Use the Logs tab to view the log files associated with the container.
      Console tab Use Console tab to display and interact with the container CLI.