How is Podman different from Docker? Podman is different from Docker in that it does not require a separate daemon to run containers, making it more lightweight and secure. It also has better support for running containers as non-root users, which can improve security.
Podman has been around for a few years now. But even so, I would say docker is still the default for many platforms.
If you are familiar with docker, you should have no trouble using podman. In fact you can use almost of the docker commands and
syntaxes using podman. Depending on which distro you use, you can simply replace the word "docker" with "podman".
Examples...
podman images
podman ps
podman ps -a
podman stop <container-name>
podman rm <container-name>
podman also works with kubernetes, very similarly to docker containers.
One major difference ( for better or worse ) is that podman uses a different program to build images.
I won't go into a lot of detail about Dockerfile syntax and creation. But once you've created it
and put into your builds directory. You run this...
buildah build
There are more options, you can add a version flag, or a specific name to your image.. but that's all you need to get started.
My Dockerfile looks like this..
I don't have a Mac, so I'm not sure, but I have been told the Mac version of podman runs as a daemon.
If it's true, it defeats one of the major advantages of podman.
Podman has been around for a few years now. But even so, I would say docker is still the default for many platforms.
If you are familiar with docker, you should have no trouble using podman. In fact you can use almost of the docker commands and
syntaxes using podman. Depending on which distro you use, you can simply replace the word "docker" with "podman".
Examples...
podman images
podman ps
podman ps -a
podman stop <container-name>
podman rm <container-name>
podman also works with kubernetes, very similarly to docker containers.
One major difference ( for better or worse ) is that podman uses a different program to build images.
I won't go into a lot of detail about Dockerfile syntax and creation. But once you've created it
and put into your builds directory. You run this...
buildah build
There are more options, you can add a version flag, or a specific name to your image.. but that's all you need to get started.
My Dockerfile looks like this..
Code:
FROM fedora:latest
RUN dnf update -y
RUN dnf install nginx nginx-all-modules nginx-filesystem python3.12-devel java-latest-openjdk-devel python3-pip python3-pipdeptree dhcp-server -y
EXPOSE 80 53
ENTRYPOINT nginx && /bin/bash
I don't have a Mac, so I'm not sure, but I have been told the Mac version of podman runs as a daemon.
If it's true, it defeats one of the major advantages of podman.
Last edited: