(01)Install
Linux
1sudo apt-get install -y podman2# RHEL: sudo dnf install -y podmanDaemonless container engine — Docker-compatible CLI
What is this?
Podman runs containers like Docker but without a background daemon — often used as a Docker alternative.
Step 01
1sudo apt-get install -y podman2# RHEL: sudo dnf install -y podmanStep 02
1podman run hello-world2# Optional alias:3echo 'alias docker=podman' >> ~/.bashrc4podman compose up -dStep 03
1podman --version2podman psStep 04
1podman ps -a2podman build -t myapp .3podman compose up -d2 YAML templates for Podman. Copy and deploy after setup.
2 ready-to-copy templates. Expand one, copy the YAML, then run the deploy commands.
docker-compose.yaml
PostgreSQL database + Flask app with env file and volume persistence
1version: "3.9"2 3services:4 db:5 image: postgres:15-alpine6 environment:7 POSTGRES_DB: dukaan_db8 POSTGRES_USER: dukaan9 POSTGRES_PASSWORD: dukaan12310 ports:11 - "5432:5432"12 volumes:13 - pgdata:/var/lib/postgresql/data14 15 app:16 build: .17 ports:18 - "5000:5000"19 env_file:20 - .env21 depends_on:22 - db23 24volumes:25 pgdata:Dockerfile
Flask application container image
1FROM python:3.12-slim2WORKDIR /app3COPY requirements.txt .4RUN pip install --no-cache-dir -r requirements.txt5COPY . .6EXPOSE 50007CMD ["python", "app.py"]Step 01
1cd your-project/2docker compose up -d --build3docker compose ps4docker compose logs -f app1docker compose down2docker compose down -v # remove volumes