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:
- Expose your
frontend
application to the public network. - Protect your
database
container in a private network.
Prerequisites
- You are using the Podman container engine.
- Your containers, such as
database
andfrontend
, running or stopped, are available on the Containers page. - The
frontend
container is configured to access the service exposed by thedatabase
container on localhost, such aslocalhost:5000
.
Procedure
- Go to Containers from the left navigation pane.
- Select the containers, such as
database
andfrontend
. - Click Create Pod.
- Optional: Edit the name of the pod. The default name is
my-pod
. - Check that the correct ports are exposed.
- Click Create Pod.
Verification
- View the newly created pod on the Pods component page.
- Click the name of the pod to view its logs.
- Click the Open Browser icon. Your browser opens the service exposed by your
frontend-podified
container.