Skip to content
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

Error when using sls-invoke local with docker image #12345

Open
4 tasks done
Kirynn opened this issue Jan 31, 2024 · 3 comments
Open
4 tasks done

Error when using sls-invoke local with docker image #12345

Kirynn opened this issue Jan 31, 2024 · 3 comments

Comments

@Kirynn
Copy link

Kirynn commented Jan 31, 2024

Are you certain it's a bug?

  • Yes, it looks like a bug

Is the issue caused by a plugin?

  • It is not a plugin issue

Are you using the latest v3 release?

  • Yes, I'm using the latest v3 release

Is there an existing issue for this?

  • I have searched existing issues, it hasn't been reported yet

Issue description

The lambci images are expired and now sls invoke local will not run when using a docker image.

Service configuration (serverless.yml) content

service: test-invoke
frameworkVersion: '3'

provider:
  name: aws
  runtime: java11

package:
  artifact: build/distributions/hello.zip

functions:
  hello:
    handler: com.serverless.Handler

Command name and used flags

sls invoke local --verbose -f hello --docker

Command output

> test-invoke@1.0.0 test
> sls invoke local --verbose -f hello --docker

Packaging⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠦ : timing config:load:flatten Completed in 1ms
Invoking function locally
Environment: darwin, node 16.20.2, framework 3.38.0 (local), plugin 7.2.0, SDK 4.5.1
Credentials: Local, "default" profile
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
Error: `docker pull --disable-content-trust=false lambci/lambda:java11` Exited with code 1
    at ChildProcess.<anonymous> (/Users/kierandmello/test-invoke/node_modules/child-process-ext/spawn.js:38:8)
    at ChildProcess.emit (node:events:513:28)
    at ChildProcess.emit (node:domain:489:12)
    at maybeClose (node:internal/child_process:1100:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)

Environment information

Framework Core: 3.38.0 (local) 3.25.1 (global)
Plugin: 7.2.0
SDK: 4.5.1
@Kirynn Kirynn changed the title Error Error when using sls-invoke with docker image Jan 31, 2024
@Kirynn Kirynn changed the title Error when using sls-invoke with docker image Error when using sls-invoke local with docker image Jan 31, 2024
@SurajAdsul
Copy link

Any update on this how to resolve the above as the docker images has been expired

@lepirlouit
Copy link

#12348

@blackknight467
Copy link

temporary workaround until an update for v3/v4 or serverless happens:

docker pull mlupin/docker-lambda:${runtime}
docker image tag  mlupin/docker-lambda:${runtime} lambci/lambda:${runtime}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants