Skip to main content

Creating a pod from selected containers

With Podman Desktop, you can create a pod from your selected containers and run it on the Podman container engine.

Consider running containers in a pod to:

  1. Expose your frontend application to the public network.
  2. Protect your database container in a private network.

Prerequisites

  • You are using the Podman container engine.
  • Your containers, such as database and frontend, running or stopped, are available on the Containers page.
  • The frontend container is configured to access the service exposed by the database container on localhost, such as localhost:5000.

Procedure

  1. Go to Containers from the left navigation pane.
  2. Select the containers, such as database and frontend. selecting containers
  3. Click Create Pod.
  4. Optional: Edit the name of the pod. The default name is my-pod.
  5. Check that the correct ports are exposed.
  6. Click Create Pod. create pod button

Verification

  1. View the newly created pod on the Pods component page. pod created successfully
  2. Click the name of the pod to view its logs.
  3. Click the Open Browser icon. Your browser opens the service exposed by your frontend-podified container. open browser icon

Additional resources