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

Can you git rid of pulling new image every time? #695

Closed
yuankunluo opened this issue Oct 6, 2018 · 3 comments
Closed

Can you git rid of pulling new image every time? #695

yuankunluo opened this issue Oct 6, 2018 · 3 comments

Comments

@yuankunluo
Copy link

Description:

Hi there, I am a Chinese developer located in Shenzhen City.
You guys may know the Gov use GreatFireWall to block internet connection between China and the world.

Recently docker.io and other dockers related website are blocked.

This caused a problem for our team, every time we invoke sam local function, we ended with http error. We can not access docker.io to get the newest images. :/

Expected result:

Is there any way to prevent sam local to pull the newest images?

@Tanbouz
Copy link

Tanbouz commented Oct 6, 2018

sam local start-api --skip-pull-image

--skip-pull-image Specify whether CLI should skip pulling down
the latest Docker image for Lambda runtime.

@yuankunluo
Copy link
Author

yuankunluo commented Oct 7, 2018 via email

@jfuss
Copy link
Contributor

jfuss commented Oct 9, 2018

@Tanbouz is correct. You can use --skip-pull-image to force SAM CLI not to call docker to download a new image.

We have another issue for making this experience better at #529.

Closing

@jfuss jfuss closed this as completed Oct 9, 2018
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

3 participants