Commit Container Changes to Create New Image

Use the Podman page in the Cockpit web console to commit container changes to a new image.

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.
  • Administrator or root users can access and change all containers. Users with limited access privileges can access and change only the containers they created.

Steps

Using the Cockpit web console, follow these steps to commit a new image based on the container changes.

  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 row of interest and then in that same row select Commit from the zctions [] menu.

    The Commit dialog appears.

  4. In the Commit dialog, specify the following properties and then click Commit.
    New Image Name Enter a name for the new image.
    Tag (Optional) Enter information to describe the image.
    Author (Optional) Enter the author's name that submitted the changes.
    Command (Optional) Keep or change the runtime command
    Options (Optional) Select any of the following options that apply:
    • Pause container when creating image: When selected, the container, and its processes are paused while the image is committed.
    • Use legacy Docker format: When selected, the Docker image format is used. Otherwise, the OCI format is used.

    The newly created image appears in the Image table.