ASTRONOMER: Install on Windows
Install Astronomer is quite simple In windows you have to follow the following steps:
- Install docker
- Install Linux on Windows with WSL.
- Add the Astro Exe to a location. In general: C\
- Change the name of the executable
- Add the file to the environment variables
- Start Docker
- Initialize and run your astronomer project
1 – Install docker
Go to the docker’s webpage, download the executable and install it.
Installation succeeded
2 – Install Linux on Windows with WSL
As you can see on the Microsoft documentation you have to run on PowerShell the following command:
wsl --install
3 – Add the Astro Exe to a location.
Go to the Atronomer release page on GitHub and download the .exe according to your architecture. Note: this is not an executable
![](https://geeklogbook.com/wp-content/uploads/2023/02/git-hub-releases-1024x531.png)
Add to the location desire (in my case C)
![](https://geeklogbook.com/wp-content/uploads/2023/02/astro-name-1024x651.png)
4 – Add the file to the environment variables
![](https://geeklogbook.com/wp-content/uploads/2023/02/env-variables-1024x390.png)
Now, if I run Astro:
astro
I can see the Astro-CLI:
![](https://geeklogbook.com/wp-content/uploads/2023/02/astro-cli.png)
5 – Start Docker
If you run:
astro dev start
Before starting Docker you’ll receive the following message:
Error: error creating docker-compose project: error during connect: This error may indicate that the docker daemon is not running.: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json?all=1&filters=%7B%22label%22%3A%7B%22com.docker.compose.project%3Dastrotest_6ce924%22%3Atrue%7D%7D&limit=0": open //./pipe/docker_engine: The system cannot find the file specified.
You only have to find the icon generated for the docker installer:
![](https://geeklogbook.com/wp-content/uploads/2023/02/docker-open-1024x530.png)
6 – Initialize and run your astronomer project
initialize the project
C:\Users\Public\Documents\astrotest>astro dev init
Initializing Astro project
Pulling Airflow development files from Astro Runtime 7.2.0
Initialized empty Astro project in C:\Users\Public\Documents\astrotest
Start the project:
astro dev start
![](https://geeklogbook.com/wp-content/uploads/2023/02/astro-dev-start-1024x349.png)
Congratulations! You’ve have installed and starting the Astronomer service. You can ran your DAGS in Airflow
![](https://geeklogbook.com/wp-content/uploads/2023/02/localhost-1024x546.png)