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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Container Image Not Working (Windows)

PBSWE opened this issue · comments

commented

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

Running into the exact same issue. Following for response.

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

Has anyone resolved this error?

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

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.