1.2. Running containers without Docker
Red Hat removed the Docker container engine and the docker command in RHEL 8.
If you still want to use Docker in RHEL, you can get Docker from different upstream projects, but it is unsupported in RHEL 10.
-
You can install the
podman-dockerpackage, every time you run adockercommand, it actually runs apodmancommand. -
Podman also supports the Docker Socket API, so the
podman-dockerpackage also sets up a link between/var/run/docker.sockand/var/run/podman/podman.sock. As a result, you can continue to run your Docker API commands withdocker-pyanddocker-composetools without requiring the Docker daemon. Podman will service the requests. -
The
podmancommand, like thedockercommand, can build container images from aContainerfileorDockerfile. The available commands that are usable inside aContainerfileand aDockerfileare equivalent. -
Options to the
dockercommand that are not supported bypodmaninclude network, node, plugin (podmandoes not support plugins), rename (use rm and create to rename containers withpodman), secret, service, stack, and swarm (podmandoes not support Docker Swarm). The container and image options are used to run subcommands that are used directly inpodman.