-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Unsuccessful cred copy: ".docker" at end of successful build #3399
Comments
@gokula-krishna-dev thanks for the report - could you share the pod yaml too? This message is only a warning but it can be indicative of a problem - did the docker image push succeed? The message should only appear if the |
Oh, sorry I just realised from your original message that it's the So this is likely what appears to be the problem: the image digest exporter injected step is based on a non-root image. The git-init Step and your Task's Step both initialize credentials in /tekton/home/.docker as the root user. Then the image-digest-exporter comes along and tries to initialize the docker credentials too. This fails because the image digest exporter can't overwrite a root-owned directory. |
I've been able to reproduce the issue from your example YAMLS and regcred, thanks a lot for those! This should not interfere with the operation of your Task and is a warning related to the difference in UIDs of the various Steps injected into your Task by PipelineResources. I'm going to document the warning message more clearly in #3395 and am going to spend some time trying to figure out if there's a way to suppress these warnings in images like the image-digest-exporter where we know for sure that the credentials don't need to be initialized. |
@sbwsg Noted and thank you for your response. I'll proceed with my setup. Also, I'll be waiting for the fix to be released 😄 |
Hi @sbwsg , Thanks for the info in doc: https://github.com/tektoncd/pipeline/blob/master/docs/auth.md#unsuccessful-cred-copy-warning And I would like to have a try to set
I am using the Tekton
Thanks! |
@zhangtbj the feature flag was only added in 0.18.0 unfortunately :S |
I see, yes I tried the |
could this be applied to a specific task and not to the whole cluster? |
Resolves access to folder .docker/ permission errors. See tektoncd/pipeline#3399 for more info.Disable creds init for tektonconfig in smaug/osc.
Expected Behavior
Exit builds free of warnings
Actual Behavior
At the end of the build I get the warning
[image-digest-exporter-rmrl8] 2020/10/16 06:13:34 unsuccessful cred copy: ".docker" from "/tekton/creds" to "/tekton/home": unable to open destination: open /tekton/home/.docker/config.json: permission denied
Steps to Reproduce the Problem
minikube start --memory 6144 --cpus 2
kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
kubectl create secret docker-registry regcred --docker-server=https://docker.io/v1/ --docker-username=sample --docker-password=123 [email protected]
kubectl apply -f sample.yaml
where contents areAdditional Info
Kubernetes version:
Output of
kubectl version
:Tekton Pipeline version:
Output of
tkn version
orkubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'
I couldn't find relevant docs for this warning. Is there any configuration step that I'm missing? or is it ok to ignore the error?
The text was updated successfully, but these errors were encountered: