big-television-45965
02/14/2022, 9:26 PM./pants publish ...
always fails with denied: requested access to the resource is denied
happy-kitchen-89482
02/14/2022, 9:29 PMcurved-television-6568
02/14/2022, 10:01 PMdocker login
prior to invoking pants. Then pass proper env vars along for docker to pick up the correct configuration so the session is propagated.
Hope you can work with that..big-television-45965
02/15/2022, 9:17 AMcurved-television-6568
02/15/2022, 9:22 AMDOCKER_CONTEXT
and/or DOCKER_CONFIG
are relevant here.
See this thread for example: https://pantsbuild.slack.com/archives/C046T6T9U/p1637136003393600[docker].env_vars
in pants.toml or similar: https://www.pantsbuild.org/v2.10/docs/reference-docker#section-env-varsbig-television-45965
02/15/2022, 9:56 AMcurved-television-6568
02/15/2022, 10:00 AMbig-television-45965
02/15/2022, 10:00 AM--print-stacktrace -ldebug
?curved-television-6568
02/15/2022, 10:02 AM-ldebug
gives you all the logs we have, and since the docker push
command runs as an interactive process, it’s not using a sandbox that we can introspect the actual command env and args used, unfortunately.big-television-45965
02/15/2022, 10:03 AMcurved-television-6568
02/15/2022, 10:03 AMbig-television-45965
02/15/2022, 10:03 AMcurved-television-6568
02/15/2022, 10:04 AMbig-television-45965
02/15/2022, 10:04 AMcurved-television-6568
02/15/2022, 10:05 AMbig-television-45965
02/15/2022, 10:09 AMcurved-television-6568
02/15/2022, 10:21 AMDOCKER_CONFIG=/home/user/.docker
or where the docker config directory is. Try with that alone (remove the other env vars from pants.toml)big-television-45965
02/15/2022, 3:07 PMcurved-television-6568
02/15/2022, 3:09 PM