pulp/pulp-smash

Registry client commands should not be executed with sudo

Closed this issue · 0 comments

At the moment, all registry client commands are executed with sudo permissions:

result = self._client.run(cmd, sudo=True)

This should not be needed for podman. But, some commands may try to access files that require sudo permissions. As a result, we would probably need to specify, e.g., --authfile parameter in some cases, like so:

podman login -u admin -p password --authfile=$HOME/containers/auth.json pulp3-source-fedora35.localhost.example.com
podman pull pulp3-source-fedora35.localhost.example.com/test:asfd --authfile=$HOME/containers/auth.json