Running containers without Docker
You can run containerized applications on RHEL by using Podman to eliminate dependencies on a central daemon and improve system security through rootless operation.
The podman-docker package also provides a compatible environment for managing Docker-formatted images while ensuring a smaller system footprint and better isolation.
Red Hat removed the Docker container engine and the docker command from 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. - The
podmancommand, such as, thedockercommand, can build container images from aContainerfileorDockerfile. The available commands that are usable inside aContainerfileand aDockerfileare equivalent. - When you use
podman, you can not use several options available with thedockercommand, including network, node, secret, service, stack, and swarm. You also cannot use the plugin option because Podman does not support plugins. If you want to rename a container with Podman, you must usermand then create instead of the rename option. You run subcommands directly in Podman rather than using the container and image options.