Skip to content

Error: cannot run command "podman mount" in rootless mode, must execute podman unshare first #64

@cmoulliard

Description

@cmoulliard

Issue

The following log https://console.redhat.com/application-pipeline/workspaces/cmoullia/applications/buildpack-remote/pipelineruns/builder-ubi-base-85r9k reports as error

Tip: Run 'pack build <image-name> --builder quay.io/redhat-user-workloads/cmoullia-tenant/buildpack-remote/builder-ubi-base:4c6f19482ada6ae79e7efe96589b375374e9e7c3' to use this builder
Container: dfc4b5984adede27c8c00e9039e99592801265255d89bbd91e560ce26d528005
Error: cannot run command "podman mount" in rootless mode, must execute `podman unshare` first
## Path of the filesystem mounted
...

even if the script execute the command

https://github.com/redhat-buildpacks/builder-ubi-base/blob/4c6f19482ada6ae79e7efe96589b375374e9e7c3/.tekton/pipelinerun-builder-ubi-base.yaml#L271-L275

podman unshare
container=$(podman create ${IMAGE})
echo "Container: $container"

podman mount $container | tee ${HOME}/shared/container_path

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtest::builderTest case to build the build image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions