VOOZH about

URL: https://repost.aws/questions/QUJbOfW01GQCW4MFRA7v7IWQ/emr-serverless-custom-image-local-validation-failure

⇱ EMR Serverless Custom Image local validation failure | AWS re:Post


Skip to content

EMR Serverless Custom Image local validation failure

0

Hi.

I have set up an EMR Serverless application and i am using my custom image. I've configured everything properly.

Next, I've created a custom image according to the official docs: https://docs.aws.amazon.com/emr/latest/EMR-Serverless-UserGuide/application-custom-image.html

However, I am stuck at the test image locally validation part of the docs as i am continuously getting the error when i am running this command "$ amazon-emr-serverless-image validate-image -r emr-6.14.0 -t spark -i 933661958818.dkr.ecr.ap-south-1.amazonaws.com/emr-custom:latest/@digest"

OUTPUT:- Amazon EMR Serverless - Image CLI Version: 0.0.1 ... Checking if docker cli is installed [ERROR] docker cli doesn't exist but is required.

I am using windows machine and i have already installed docker desktop and verified that docker is running but again and again it throws the same error.

Please advise a possible solution.

Thanks

2 Answers
  • Newest
  • Most votes
  • Most comments
Are these answers helpful? Upvote the correct answer to help the community benefit from your knowledge.
0

Hi, on Windows machine you need to execute this tool in some kind of virtual linux env like WSL .
Validation tool is using simple helper script to verify if docker cli is installed. It uses shutil library with "which" method, which is equivalent of running "which" command on Linux systems.

answered 2 years ago

  • Riteek Sharma
    2 years ago

    Hello Thanks for the update, I run the same command on the wsl terminal it showed me the same issue.

0

You need to make sure docker is integrated with WSL. So if you manually run which docker command it should return version. You mentioned you have Docker Desktop, please check this guide in WSL documentation how to integrate them.

answered 2 years ago

EXPERT

reviewed 2 years ago

  • Riteek Sharma
    2 years ago

    Yes i integrated my wsl with the docker desktop and followed the above documentation to integrate it but still the problem persists. I have unistalled the docker desktop and installed it again but that also didn't work for me.