We recommend using Podman as your container engine. Podman is rootless by design, which makes it a more secure solution. Its daemonless design removes the single point of failure created by Docker’s central daemon.
Read more about Podman
brew install podman
On macOS and Windows, running the Podman container engine requires running a Linux virtual machine.
By default, Podman Desktop initializes a Podman machine with a standard configuration.
Consider creating a custom Podman machine to:
Prerequisites
Procedure
Docker compose has more features than Podman compose and therefor the recommended tool for running compose files.
Install docker compose by executing the following:
brew install docker-compose
Podman compose will now using /opt/homebrew/bin/docker-compose instead.
Some test frameworks call the docker command. Becaus To resolve this we have to make a static link to the podman command. Find the path to your podman binary:
which podman
and then replace the below with your path and run the command:
sudo ln -s <path-to-your-podman-binary> /usr/local/bin/docker