AWS SAM local example fails with image not found

2.5k views Asked by At

I'm trying to run the ASW sam local example with 'sam local invoke' but get this error:

Could not find amazon/aws-sam-cli-emulation-image-nodejs12.x:rapid-1.6.2 image locally and failed to pull it from docker

Any suggestions?

2

There are 2 answers

0
marting On

This started working after I created a docker account and was logged in in Docker Desktop.

0
Mohit Nagpal On

Switch your Docker from windows container to Linux container:

Image showing how to switch between Linux/windows container in Windows 10

Else try to pull the image manually you will get the actual error. https://hub.docker.com/r/amazon/aws-sam-cli-emulation-image-java8