-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Problems with private docker images on quay.io #3367
Comments
Thank you for the super detailed issue @sdwolfz!
Hmm...if this is an auth error it is really a weird error message. Especially that the google/go-containerregistry#377 was fixed in April and we are on a December version of go-containerregistry (unless it's a regression). Can you try to run
Portforwarding is coming to |
@balopat Same error when running
|
Anyone can confirm that this is still an issue? |
I'll try to re-run it and get back to you within a few days. |
@dgageot I can confirm the issue still occurs exactly as described above. |
I believe Remember the schema v1 is ancient and by now you should consider it dead. The Docker CLI currently returns this warning:
Once @sdwolfz confirms the issue is gone after upgrading the image (or re-configure Quary.io) to return a schema 2 manifest, probably we can close this issue. |
@chanseokoh Thank you for the details. I'll give it a go and see what happens. |
@chanseokoh you are right, the problem is CircleCI uses an ancient version of docker by default: |
I am seeing this error again for a sample project i am running with this dockerfile
error:
This is also reason where users see |
☝️ may be the old ruby image? assuming that image was built a long time ago. Anyway, my issue went away when upgrading the docker version in out |
|
@chanseokoh we have a a Pr in progress #4896 to not error but ask users to manually docker pull and proceed. |
Closing this: go-containerregistry will not support these old manifests, and using a more modern docker to build and push images solves this issue. |
Setup:
1.0.1
andv1.0.0-144-g760edb47-dirty
(built from master 760edb4)Steps:
Note: you can also use the Docker for Mac kubernetes functionality, it does not change the outcome.
skaffold.yml
:pod.yml
:Dockerfile
:Note: make sure you use a private image with this.
skaffold dev
Expected:
The image is build and pushed to minikube, a pod is started and running.
Observed:
Note that running:
skaffold run
orskaffold debug
works properly, the issue is only withskaffold dev
. Also if you do arun
ordebug
before adev
and it downloads the image successfully, the problem goes away.Since
debug
is basicallydev
with the following extra config:I'm assuming the problem is related to target images, and from the log and looking through the code what I understand is that it tries to parse the remote image in order to determine which files to watch, but does not have access to the image to do that (unless the image has already been pulled).
Also, the error message could be better, listing an authentication error instead of a mime type related one.
Other
I would like an option to disable artifact caching and file watching from the
skaffold.yml
, or an option to have port forwarding enabled from arun
command. I could not find a reference to something like this in the docs.The text was updated successfully, but these errors were encountered: