-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SAM INVOKE FAILS #5421
Comments
Hey @Sadagopan88 thanks for your report! What does your template look like? Have you tested this with the latest docker engine? However, I agree on graceful degradation and not throwing a stack trace here. |
@sriram-mv Yes im using latest docker engine Docker version 24.0.2, build cb74dfcd85
|
Hi @Sadagopan88, I downloaded sam cli using brew and used the |
Hi @Sadagopan88, based on your |
@hnnasit I'm experiencing the exact same issue (Podman / SAM). I tried
The above looks like more of a permissions error on my end so I'll dig into that but if there's any chance it's helpful then I figured I'd share. |
--skip-pull-image works for me on MacOS + podman. but still have other podman related issues with sam cli, i think all are documented though |
Hi there, We found the issue which is originating from dockerpy library that SAM CLI uses under the hood for communicating with Docker APIs. We've raised a PR on that repository (docker/docker-py#3156) which is merged. We are now waiting a new release of the library, and once that is released we are going to update our dependency which should resolve the issue. We will update this issue once we got the newer version of the library. Thanks |
Turns out that on Windows, it looks like SAM does a simple string replace of the host path for the volume mount, eg: I found a quick-and-dirty workaround for this by logging into an interactive session of the podman machine, then creating the respective symlinks, for eg: The commands I ran should give you a better idea on what I'm talking about.
|
|
Description:
Steps to reproduce:
SAM CLI, version 1.88.0
run SAM local invoke
Observed result:
Expected result:
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
:1.88Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: