swift-dawn-80732
10/18/2022, 11:30 PM./pants package
on a docker_image
target:
#3 [internal] load metadata for <http://docker.io/library/python:3.9.10|docker.io/library/python:3.9.10>
#3 sha256:46aa02c10fee7f9ebc6cc466be0c44172ff37ff4dd662dc045c92c93ba51e3fe
#3 ERROR: rpc error: code = Unknown desc = error getting credentials - err: exit status 1, out: `One or more parameters passed to a function were not valid.`
has anyone ran into this issue?swift-dawn-80732
10/18/2022, 11:32 PMOne or more parameters passed to a function were not valid
looks like it has something to do with ssl certificates in macsswift-dawn-80732
10/18/2022, 11:33 PMcurved-television-6568
10/18/2022, 11:33 PMcurved-television-6568
10/18/2022, 11:34 PMswift-dawn-80732
10/18/2022, 11:38 PMswift-dawn-80732
10/18/2022, 11:38 PM[docker]
env_vars = ["DOCKER_CONFIG=%(homedir)s/.docker"]
to pants.toml
solved the issueswift-dawn-80732
10/18/2022, 11:39 PMcurved-television-6568
10/18/2022, 11:55 PMcurved-television-6568
10/18/2022, 11:55 PMfast-nail-55400
10/19/2022, 12:04 AMXDG_CONFIG_HOME
nor HOME
is not set in the execution sandbox, docker would not know where to find config file. https://github.com/moby/moby/blob/2400bc66ef6955760a331a2bff767d4fec244844/pkg/homedir/homedir_linux.go#L84-L93