Closed srd424 closed 7 months ago
Urgh yes...messy. Hmmm...now I'm a bit confused since the commit message there says
Otherwise in some cases the containers/image stack can try to look at things like $HOME which might be set to /root if we're running outside of systemd,
Yet, early on in this function we just return if we're not running in systemd, so we shouldn't in theory hit this code path in the conditions I described...
566 added
--reset-env
to the setpriv call that invokes skopeo, which means information about proxies is no longer passed through.As a totally horrible hack, putting this in
/usr/local/bin/skopeo
works:setpriv
doesn't seem to support to whitelist env vars - perhaps they could be extracted from the environment before calling it, then passed toenv
?