Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-4863

[udi] Permission denied when trying to create container within a workspace with kubedock and podman

XMLWordPrintable

    • False
    • None
    • False

      Description of problem:

      After task Allow running podman from within a workspace was resolved podman commands should allow to manege containers, but permission denied.

      Steps to Reproduce

      1. Clone https://github.com/l0rd/dockerfile-hello-world using factory
      2. Open terminal
      3. Run script:
        export KUBEDOCK_ENABLED=true
        echo $KUBEDOCK_ENABLED
        /entrypoint.sh
        cd $PROJECT_SOURCE
        export USER=$(oc whoami)
        export TKN=$(oc whoami -t)
        export REG="image-registry.openshift-image-registry.svc:5000"
        export PROJECT=$(oc project -q)
        export IMG="${REG}/${PROJECT}/hello"
        podman login --tls-verify=false --username ${USER} --password ${TKN} ${REG}
        podman build -t ${IMG} .
        podman push --tls-verify=false ${IMG}
        podman run --rm ${IMG}
        

         

        Actual results:

      Permission denied:

      KUBEDOCK_ENABLED
      Java environment set to /usr/lib/jvm/java-11-openjdk
      Kubedock is enabled (env variable KUBEDOCK_ENABLED is set to true).
      Kubeconfig found.
      Starting kubedock with params "--reverse-proxy"...
      Done.
      Replacing podman with podman-wrapper.sh...
      Done.
      sh: line 10: /home/user/.local/bin/podman: Permission denied
      sh: line 11: /home/user/.local/bin/podman: Permission denied
      sh: line 12: /home/user/.local/bin/podman: Permission denied
      sh: line 13: /home/user/.local/bin/podman: Permission denied
      command terminated with exit code 126
      

      Expected results:

      Output "Hello from Kubedock!"

      Reproducibility (Always/Intermittent/Only Once):

      Acceptance criteria: 

      Definition of Done:

      Build Details:

      DS 3.9

      Additional info (Such as Logs, Screenshots, etc):

      screenshot-1.png
       

       *

              nickboldt Nick Boldt
              rh-ee-mdolhalo Maryna Dolhalova (Inactive)
              Maryna Dolhalova Maryna Dolhalova (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: