Run container rootless podman
Start a detached nginx container without root privileges
podman run -d --name web -p 8080:80 nginx:alpine
more podman
all 16 commands →
Build image
podman build -t myapp:latest -f Containerfile .
Generate systemd unit
podman generate systemd --new --name web > ~/.config/systemd/user/web.service
Play Kubernetes YAML
podman play kube deployment.yaml
Export pod as Kubernetes YAML
podman generate kube mypod > pod.yaml
Create and use a pod
podman pod create --name mypod -p 8080:80 && podman run -d --pod mypod nginx:alpine