-
Notifications
You must be signed in to change notification settings - Fork 772
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
Docker build fails: Failed to push image: unauthized:authentication required #496
Comments
If I delete the buildconfig, re-create it via oc-new-build, and then go edit the yaml to set the dockerfilePath, I get the following, which works: apiVersion: v1 |
@stephanosbacon , I am trying to reproduce this error, this config also gives me the same error. this error is coming from openshift and is being tracked here openshift/origin#12474 |
Hmm that is strange, I just tried that and it worked for me. I've skipped |
New observations. Something is different in new minishift :-( |
It looks like its bug in openshift. openshift/origin#4518 If you create buildconfig first before imagestream it fails. If imagestream is created first it is ok. |
Will OpenCompose work around it? (It seems to be a combination big deal/low priority to fix on the OpenShift side) |
with |
@kadel , that worked 😛 |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
Can we close this? |
Sure |
Check if the serviceaccount chat/builder with system:image-builder role is missing then add it |
Pushing image 172.30.46.106:5000/chat/chatback:latest ...
Pushed 0/20 layers, 0% complete
error: build error: Failed to push image: unauthorized: authentication required
After running kompose convert, and editing the resulting buildconfig such that it has a dockerfilePath (dunno if this should make a difference), the resulting build fails with the above failure.
The relevant test case is at: https://github.com/stephanosbacon/chatBack/tree/master/build/kompose
The text was updated successfully, but these errors were encountered: