If I am a non-root user, trying to use a non-root image, this fails with
$ rpm-showme localhost/nsquash:latest size mkdir: cannot create directory '/workdir': Permission denied Traceback (most recent call last): File "/home/tdawson/bin/rpm-showme", line 753, in <module> main() File "/home/tdawson/bin/rpm-showme", line 643, in main packages = get_packages(args.what) File "/home/tdawson/bin/rpm-showme", line 601, in get_packages packages = load_packages_from_container_image(name) File "/home/tdawson/bin/rpm-showme", line 188, in load_packages_from_container_image base.fill_sack() File "/usr/lib/python3.6/site-packages/dnf/base.py", line 387, in fill_sack self._sack.load_system_repo(build_cache=False) OSError: failed calculating RPMDB checksum
When I ended the image manually, I see that I am uid=27(mysql) and that I do not have write access to the directory /workdir.
https://pagure.io/minimization/rpm-showme/pull-request/2
Nice catch!
PR merged
Metadata Update from @asamalik: - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.