Switch between Podman and Docker

The Astro CLI automatically runs Podman containers whenever you run a command that requires them. You can switch between Podman and Docker as your container management engine to run Astro CLI commands.

Prerequisites

Switch between Podman and Docker

To run CLI commands in Docker containers, run the following command:

1astro config set container.binary docker -g

If you need to switch back to using Podman again, run the following command:

1astro config set container.binary podman -g
If you want to switch between Docker and Podman on a specific project without changing the global configuration, run these commands without the -g.