happy-family-315
02/17/2023, 1:21 PM#3 [internal] load metadata for <http://docker.io/library/python:3.8-buster|docker.io/library/python:3.8-buster>
#3 sha256:88586e40fdfcc6826fc75a7a9653c2727184be908b30c80bf7580390d6713f00
#3 ERROR: rpc error: code = Unknown desc = error getting credentials - err: exec: "docker-credential-dev-containers-e0fbf732d956a2c0412935aab1cc18ff0f3b4638": executable file not found in $PATH, out: ``
It fails here: FROM python:3-8-buster
I don't understand why this happens because using docker build
works fine. (I am running this inside a devcontainer)sparse-lifeguard-95737
02/17/2023, 2:17 PMdocker build
process in a sandbox with most environment variables un-set - this can cause problems when the docker CLI tries to locate & run pluginssparse-lifeguard-95737
02/17/2023, 2:17 PMsparse-lifeguard-95737
02/17/2023, 2:18 PMpants.toml
you’ll need to specify:
[docker]
tools = ["docker-credential-dev-containers-e0fbf732d956a2c0412935aab1cc18ff0f3b4638"]
that will make sure the binary is on the PATH
in the sandboxsparse-lifeguard-95737
02/17/2023, 2:19 PMsparse-lifeguard-95737
02/17/2023, 2:20 PM.pants.bootstrap
in your repo root, write shell to:
1. find
the docker-credential-dev-containers-*
binary to get its actual full name
2. export PANTS_DOCKER_TOOLS="+['$the_full_path']"
sparse-lifeguard-95737
02/17/2023, 2:21 PMaws-oidc
into our docker tool listsparse-lifeguard-95737
02/17/2023, 2:22 PMHOME
to [docker].env_vars
in pants.toml
- something in my team’s docker stack was using it to look up configs, but I don’t remember if it was the core CLI or one of our pluginshappy-family-315
02/21/2023, 11:14 AMprehistoric-afternoon-67621
02/21/2023, 2:06 PMrm ~/.docker/config.json
and trying the build again 🙈