KevsRobots Learning Platform
91% Percent Complete
By Kevin McAleer, 2 Minutes
Page last updated May 24, 2025

Itβs time to put your knowledge into practice! In this hands-on project, youβll migrate a simple Docker-based application to Podman, step by step.
Youβll see how to:
podman-compose or pods directlyBy the end of this project, you will have:
docker commands with podmandocker-compose.yml to podman-composegit clone https://github.com/kevinmcaleer/docker-migration-demo.git
cd docker-migration-demo
This app contains:
docker-compose.ymlInstall podman-compose if you havenβt already:
pip3 install podman-compose
Then run:
podman-compose up
Inspect the generated pod:
podman pod ps
Check logs:
podman logs <container-id>
Create a pod manually:
podman pod create --name myapp -p 8080:80
Start your containers inside the pod:
podman run -dt --pod myapp --name redis redis
podman run -dt --pod myapp --name webapp myapp-image
Generate a systemd unit file:
podman generate systemd --name webapp --files --restart-policy=always
Move it into place:
mkdir -p ~/.config/systemd/user
mv container-webapp.service ~/.config/systemd/user/
systemctl --user daemon-reexec
systemctl --user enable --now container-webapp.service
Repeat for other services as needed.
Ensure no root privileges are required:
whoami
podman ps
You should see your containers running under your user.
Youβve now fully migrated a Docker-based app to Podman:
podman-compose or podsTry deploying another project with:
generate kube)docker-compose.ymlNext up: Wrap-up and Future Outlook
You can use the arrows β β on your keyboard to navigate between lessons.
Comments