What is Podman ?? #
- Podman is a daemonless container engine and an open source tool that is compatible with Docker’s features while improving security and usability.
- Podman is an open source tool that is breaking new ground in container technology.
Why use Podman ?? #
- Running containers without root
- No central daemon is required.(Daemonless architecture)
- A better security model (Security-Focused Design)
- Support for running rootless containers
- Take advantage of user namespaces
- Use more limited Linux kernel features by default
- High Compatible with Docker commands
- Docker CLI command support
- Docker image available
- Docker Compose file compatibility
- Existing Docker users can easily switch to Podman
- Basic system integration
- Reduce resource consumption
- Kubernetes integration
- Unlike Docker, it can interact directly with Kubernetes clusters without a separate Kubernetes runtime, simplifying developers’ workflow.
Podman vs Docker: What’s the Difference? #
- Unlike Docker, Podman manages containers directly, without a central daemon running in the background. This provides the following benefits:
Install Podman
sudo apt-get install podman
Pull an image
podman pull nginx
podman images
Run a container
podman run -d –name nginx-container -p 8080:80 nginx
Nginx Edit configuration file
podman exec nginx-container nginx -T
podman exec -it nginx-container /bin/bash
vim /etc/nginx/nginx.conf