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

allow sanic build to pull local images if they exist #11

Open
tonzgao opened this issue Oct 6, 2019 · 0 comments
Open

allow sanic build to pull local images if they exist #11

tonzgao opened this issue Oct 6, 2019 · 0 comments

Comments

@tonzgao
Copy link

tonzgao commented Oct 6, 2019

Dockerfile FROM db command works with docker build but not sanic build for local images

/home/tonz/projects/fast-flier-deals/services/migrator
[2019-10-06 17:23:16.07380992 -0400 EDT] transferring dockerfile: 178.00B
[2019-10-06 17:23:16.664207514 -0400 EDT] transferring context: 2.00B
[2019-10-06 17:23:19.592558928 -0400 EDT] [1/3] FROM docker.io/library/db:latest
[2019-10-06 17:23:19.592608417 -0400 EDT] [2/3] ADD requirements.txt /tmp
[2019-10-06 17:23:19.592621582 -0400 EDT] [3/3] RUN pip install -r /tmp/requirements.txt && rm /tmp/requirements.txt
[2019-10-06 17:23:19.592676532 -0400 EDT] [1/3] FROM docker.io/library/db:latest
[2019-10-06 17:23:19.919727448 -0400 EDT] pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed: LAYERID=sha256:ccb5ad2d63d98d3b08defe021f5a2a88c5aa993258a983c15670ef347f519da2
[2019-10-06 17:23:19.919781622 -0400 EDT] [1/3] FROM docker.io/library/db:latest
[2019-10-06 17:23:19.918292165 -0400 EDT] resolve docker.io/library/db:latest 0B
[2019-10-06 17:23:19.920876694 -0400 EDT] FAILED: failed to solve: rpc error: code = Unknown desc = failed to build LLB: failed to load cache key: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
[2019-10-06 17:23:19.920960577 -0400 EDT] Build failed! failed to solve: rpc error: code = Unknown desc = failed to build LLB: failed to load cache key: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed

without this it is hard to do local baseimages or libraries (like db)

solution probably involves some sort kind of dependency checking for build ordering

@tonzgao tonzgao changed the title allow sanic build to pull local images first allow sanic build to pull local images if they exist Oct 6, 2019
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

1 participant