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

Error: failed to start container "place-tools": Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: chdir to cwd ("/home/nonroot") set in config.json failed: permission denied: unknown #4007

Closed
13567436138 opened this issue Jun 7, 2021 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@13567436138
Copy link

Expected Behavior

Actual Behavior

Error: failed to start container "place-tools": Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: chdir to cwd ("/home/nonroot") set in config.json failed: permission denied: unknown

Steps to Reproduce the Problem

apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
  name: hello-podtemplate
spec:
  steps:
    - name: hello
      image: ubuntu
      command:
        - id
---
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
  generateName: podtemplate-
spec:
  taskRef:
    name: hello-podtemplate
  podTemplate:
#    schedulerName: volcano
    securityContext:
      runAsNonRoot: true
      runAsUser: 1001

Additional Info

  • Kubernetes version:
    [root@master01 taskrun]# kubectl version
    Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.5", GitCommit:"6b1d87acf3c8253c123756b9e61dac642678305f", GitTreeState:"clean", BuildDate:"2021-03-18T01:10:43Z", GoVersion:"go1.15.8", Compiler:"gc", Platform:"linux/amd64"}
    Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.5", GitCommit:"6b1d87acf3c8253c123756b9e61dac642678305f", GitTreeState:"clean", BuildDate:"2021-03-18T01:02:01Z", GoVersion:"go1.15.8", Compiler:"gc", Platform:"linux/amd64"}
    Output of kubectl version:

    (paste your output here)
    
  • Tekton Pipeline version:
    [root@master01 taskrun]# tkn version
    Client version: 0.18.0
    Pipeline version: v0.24.1
    Dashboard version: v0.17.0
    Output of tkn version or kubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'

@13567436138 13567436138 added the kind/bug Categorizes issue or PR as related to a bug. label Jun 7, 2021
@ghost
Copy link

ghost commented Jun 8, 2021

This was fixed in #3979 and should be released as part of Pipelines 0.25.

@ghost ghost mentioned this issue Jun 9, 2021
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant