big-television-45965
02/14/2022, 9:26 PM./pants publish ... always fails with denied: requested access to the resource is deniedbig-television-45965
02/14/2022, 9:26 PMhappy-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/p1637136003393600curved-television-6568
02/15/2022, 9:22 AMcurved-television-6568
02/15/2022, 9:23 AMcurved-television-6568
02/15/2022, 9:24 AM[docker].env_vars in pants.toml or similar: https://www.pantsbuild.org/v2.10/docs/reference-docker#section-env-varscurved-television-6568
02/15/2022, 9:51 AMbig-television-45965
02/15/2022, 9:56 AMbig-television-45965
02/15/2022, 9:57 AMbig-television-45965
02/15/2022, 9:58 AMbig-television-45965
02/15/2022, 10:00 AMcurved-television-6568
02/15/2022, 10:00 AMbig-television-45965
02/15/2022, 10:00 AM--print-stacktrace -ldebug?big-television-45965
02/15/2022, 10:00 AMcurved-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.curved-television-6568
02/15/2022, 10:02 AMbig-television-45965
02/15/2022, 10:03 AMbig-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 AMbig-television-45965
02/15/2022, 10:04 AMbig-television-45965
02/15/2022, 10:05 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