On 2021-04-25 13:17 -0000, supravapanda(a)gmail.com wrote:
I have tried all options.when run podman pull command as a normal user
i get below error.but as sudo it works fine.
Can i know what need to done to run the command as a non root user..
atlvrmsbmld02:/home/orequest[ 53 ] --> podman pull
registry.access.redhat.com/ubi8/ubi
Trying to pull
registry.access.redhat.com/ubi8/ubi:latest...
Getting image source signatures
Copying blob 4b21dcdd136d done
Copying blob 55eda7743468 done
Copying config 613e5da7a9 done
Writing manifest to image destination
Storing signatures
Error processing tar file(exit status 1): Error setting up pivot dir: mkdir
/home/orequest/.local/share/containers/storage/overlay/476579af086aee78cb12d88b08fd6b61a80a3f055cae293ec2d15a37dbe7b3f9/diff/.pivot_root471672024:
permission denied
Error: Error committing the finished image: error adding layer with blob
"sha256:4b21dcdd136d133a4df0840e656af2f488c226dd384a98b89ced79064a4081b4": Error
processing tar file(exit status 1): Error setting up pivot dir: mkdir
/home/orequest/.local/share/containers/storage/overlay/476579af086aee78cb12d88b08fd6b61a80a3f055cae293ec2d15a37dbe7b3f9/diff/.pivot_root471672024:
permission denied
_______________________________________________
Podman mailing list -- podman(a)lists.podman.io
To unsubscribe send an email to podman-leave(a)lists.podman.io
Maybe, is your SELinux context OK?
$ id # ensure you are you :)
$ getenforce
$ restorecon -vR /home/orequest/.local/
Also if you do not have anything important there, you can delete the dir
in case it was accidentally created before with some wrong permissions:
$ rm -rf /home/orequest/.local/share/containers/ # danger! this
# deletes that directory
Just guessing.
Regards,
Jan
--
Jan Hutar Performance Engineering
jhutar(a)redhat.com Red Hat, Inc.