Skip to content

Commit

Permalink
Enable Content Trust checking when pulling lambci/lambda images
Browse files Browse the repository at this point in the history
This ensures that the images are signed correctly:
https://docs.docker.com/v17.09/engine/security/trust/content_trust/
  • Loading branch information
mhart committed Nov 21, 2019
1 parent 05eec83 commit f569435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/aws/invokeLocal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class AwsInvokeLocal {
this.serverless.cli.log('Downloading base Docker image...');

return new BbPromise((resolve, reject) => {
const docker = spawn('docker', ['pull', `lambci/lambda:${runtime}`]);
const docker = spawn('docker', ['pull', '--disable-content-trust=false', `lambci/lambda:${runtime}`]);
docker.on('exit', error => {
return error ? reject(error) : resolve();
});
Expand Down

0 comments on commit f569435

Please sign in to comment.