aws / aws-mwaa-local-runner

This repository provides a command line interface (CLI) utility that replicates an Amazon Managed Workflows for Apache Airflow (MWAA) environment locally.
MIT No Attribution
690 stars 698 forks source link

Docker Container Image Not Working (Windows) #378

Open PBSWE opened 5 months ago

PBSWE commented 5 months ago

The Docker Desktop is working and engine is running. Attempting to create a new container following the instructions on the code tab, however in the second step where the command line is "build image", the code prompts a program to choose to open the file with and regardless of the choice (Docker Desktop or Docker CLI, etc.) nothing happens. Docker Desktop continues to have no container created. Submitting this ticket per AWS Support guidance.

docker_issue

annicha1 commented 5 months ago

Running into the exact same issue. Following for response.

SerZhyAle commented 4 months ago

i would recommend to jump over it and build the image in windows by clicking the UI in visual code:

EaseUS_2024_06_14_11_27_30
lucasinveninato commented 4 months ago

Has anyone resolved this error?

neverlink commented 2 months ago

mwaa-local-env is a bash shell script. Are you trying to execute this in Powershell directly?

garrett-groff-ch commented 2 months ago

The resolution to this specific issue is to run the bash script from the WSL command line. If run in Windows, it won't work, b/c Windows will prompt you to open via an application selection list.

Something else to bear in mind: line endings. If you git clone the aws-mwaa-local-runner project from Windows rather than WSL, then you have to convert all line endings of files in the project. I used this command to do so: find . -type f -exec dos2unix -v {} \; (run from the aws-mwaa-local-runner directory)

Be sure to get dos2unix first, via a command line this one: sudo apt install dos2unix

I hope that helps.