$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">update
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">update
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">update
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install podman -y
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install podman -y
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install podman -y
$ podman --version
$ podman --version
$ podman --version
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable podman.socket
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">start podman.socket
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable podman.socket
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">start podman.socket
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable podman.socket
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">start podman.socket
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">status podman.socket
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">status podman.socket
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">status podman.socket
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">stop podman.socket
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">restart podman.socket
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">stop podman.socket
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">restart podman.socket
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">stop podman.socket
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">restart podman.socket
$ -weight: 600;">sudo podman pull -weight: 500;">docker.io/nginx:alpine
$ -weight: 600;">sudo podman pull -weight: 500;">docker.io/nginx:alpine
$ -weight: 600;">sudo podman pull -weight: 500;">docker.io/nginx:alpine
$ -weight: 600;">sudo podman run -d --name example-nginx -p 9090:80 -weight: 500;">docker.io/nginx:alpine
$ -weight: 600;">sudo podman run -d --name example-nginx -p 9090:80 -weight: 500;">docker.io/nginx:alpine
$ -weight: 600;">sudo podman run -d --name example-nginx -p 9090:80 -weight: 500;">docker.io/nginx:alpine
$ -weight: 600;">sudo podman ps
$ -weight: 600;">sudo podman ps
$ -weight: 600;">sudo podman ps
$ -weight: 500;">curl http://localhost:9090
$ -weight: 500;">curl http://localhost:9090
$ -weight: 500;">curl http://localhost:9090
$ mkdir ~/example-app
$ cd ~/example-app
$ mkdir ~/example-app
$ cd ~/example-app
$ mkdir ~/example-app
$ cd ~/example-app
$ nano Dockerfile
$ nano Dockerfile
$ nano Dockerfile
FROM python:3.12-slim
WORKDIR /app
RUN -weight: 500;">pip -weight: 500;">install fastapi uvicorn
COPY . .
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5000"]
FROM python:3.12-slim
WORKDIR /app
RUN -weight: 500;">pip -weight: 500;">install fastapi uvicorn
COPY . .
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5000"]
FROM python:3.12-slim
WORKDIR /app
RUN -weight: 500;">pip -weight: 500;">install fastapi uvicorn
COPY . .
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5000"]
$ nano app.py
$ nano app.py
$ nano app.py
from fastapi import FastAPI
app = FastAPI() @app.get("/")
def read_root(): return {"message": "Hello from Podman on Ubuntu 26.04"}
from fastapi import FastAPI
app = FastAPI() @app.get("/")
def read_root(): return {"message": "Hello from Podman on Ubuntu 26.04"}
from fastapi import FastAPI
app = FastAPI() @app.get("/")
def read_root(): return {"message": "Hello from Podman on Ubuntu 26.04"}
$ -weight: 600;">sudo podman build -t example-fastapi-app .
$ -weight: 600;">sudo podman build -t example-fastapi-app .
$ -weight: 600;">sudo podman build -t example-fastapi-app .
$ -weight: 600;">sudo podman run -d --name example-app -p 5000:5000 example-fastapi-app
$ -weight: 600;">sudo podman run -d --name example-app -p 5000:5000 example-fastapi-app
$ -weight: 600;">sudo podman run -d --name example-app -p 5000:5000 example-fastapi-app
$ -weight: 500;">curl http://localhost:5000
$ -weight: 500;">curl http://localhost:5000
$ -weight: 500;">curl http://localhost:5000 - -d: run detached (background)
- --name example-nginx: human-readable container name
- -p 9090:80: map host port 9090 to container port 80 - Use podman compose for multi-container orchestration with Docker Compose files
- Push images to Docker Hub or a private registry with podman push
- Configure rootless Podman to run containers without -weight: 600;">sudo