astro dev start and astro deploy commands both require containers.
Starting with version 1.32.0, the Astro CLI is packaged with Podman as its container management engine for running Airflow locally, when installed by Homebrew or Winget.
Configure the Astro CLI to use Podman
- Mac
- WSL2 on Windows
- Linux
Set up Podman on a Mac operating system so you can run Apache Airflow locally and deploy to Astro with Podman containers.
Prerequisites
- Podman 3 or later. See Getting started with Podman.
- A running Podman machine with at least 4 GiB of RAM. To confirm that Podman is running, run
podman ps.
Setup
-
Run the following command to confirm that Podman has access to Astro images at
docker.io:If this command fails, use Podman Desktop to change Podman’s default image registry location todocker.io. See Provide pre-defined registries.
For CLI versions 1.30.0 and earlier
For CLI versions 1.30.0 and earlier
Run the following command to set Podman as your container management engine for the Astro CLI:If you’re using Podman 3, additionally run the following command:
Troubleshooting
SHELL is not supported for OCI image format
BUILDAH_FORMAT environment variable on your machine:
Cannot connect to the Docker daemon
unix://var/run/docker.sock.
”docker-credential-desktop”: executable file not found
$HOME/.docker/config.json for registered credentials stores.
To resolve the issue, delete the corresponding Docker configuration at $HOME/.docker from the system or install Docker again.
Further info can be found here.