1 Answer
- Newest
- Most votes
- Most comments
2
Do you have docker installed and the docker daemon running on the machine from where you are trying to use sam build --use-container command.
Take a look at https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install-windows.html
Step 3 - Install Docker mentions the following - "Docker is a prerequisite only for testing your application locally and for building deployment packages using the --use-container option. If you don't plan to use these features initially, you can skip this section or install Docker at a later time."
So if you are using the --use-container option, then you do need docker to be running on the machine.
Relevant content
- asked 8 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated a year ago
It worked. Thank you so much :)