Run container rootless
Start a detached nginx container without root privileges
podman run -d --name web -p 8080:80 nginx:alpine
- tool
- podman16 commands
- tags
- podmancontainers
More podman commands
-
podman build -t myapp:latest -f Containerfile .Build from a Containerfile (Dockerfile-compatible)
-
podman generate systemd --new --name web > ~/.config/systemd/user/web.serviceCreate a systemd unit to manage the container lifecycle
-
podman play kube deployment.yamlRun a pod from a Kubernetes manifest (local testing)
-
podman generate kube mypod > pod.yamlGenerate a Kubernetes-compatible manifest from a running pod
-
podman pod create --name mypod -p 8080:80 && podman run -d --pod mypod nginx:alpineGroup containers into a pod sharing network namespace