#Podman
Podman is a daemonless, rootless container engine.
#Podman vs Docker
| Feature | Podman | Docker |
|---|---|---|
| Daemon | No | Yes |
| Rootless | Yes | Optional |
| CLI | Compatible | Standard |
| Docker Compose | podman-compose | docker-compose |
#Installation
bash
1# Ubuntu
2sudo apt install podman
3
4# RHEL/CentOS
5sudo dnf install podman
6
7# Verify
8podman --version#Usage
bash
1# Same commands as Docker!
2podman run nginx
3podman images
4podman ps
5podman build -t myimage .
6
7# Rootless
8podman run --userns=keep-id nginx#Docker Compatibility
bash
1# Alias for scripts
2alias docker=podman
3
4# Or use docker-compatible socket
5systemctl --user enable podman.socket
6export DOCKER_HOST=unix:///run/user/$(id -u)/podman/podman.sock[!TIP] Pro Tip: Podman is great for security-conscious environments!