Use Astro CLI with Rancher Desktop

If you can’t use Docker Desktop with Astro CLI, you have the option to use Podman, which is an open source tool for managing your containers. Docker and Podman are officially supported by Astro CLI.

If you want to use Rancher Desktop on Mac instead of Docker Desktop with Astro CLI, follow these instructions:

  1. Install Rancher Desktop based on your OS from https://rancherdesktop.io/

  2. Open the .dmg installer package for Rancher Desktop.

  3. Select dockerd (moby) as the Container Engine.

  4. Select Automatic as the Configure Path option.

  5. Click on Accept.

  6. Run the following commands in your terminal:

    ln -s ~/.rd/bin/docker-buildx ~/.docker/cli-plugins/docker-buildx
    ln -s ~/.rd/bin/docker-compose ~/.docker/cli-plugins/docker-compose
    

Now you can run astro dev start to start your local Airflow environment.

Keep flying with Airflow!

I am using Rancher. Those files are linked, but I get this exception:

Error: Error checking checking container status: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

The other part of a Rancher solution is to link Rancher’s docker.sock to Docker’s expected location:

ln -s ~/.rd/docker.sock /var/run/docker.sock