acoustic-garden-40182
03/07/2023, 8:33 PMpants test ::
20:23:27.94 [ERROR] 1 Exception encountered:
Engine traceback:
in `test` goal
in Run Pytest - (environment:local_docker, tests/test_config_test.py)
Exception: Failed to obtain version from local Docker: error trying to connect: Permission denied (os error 13)
I am able to run all docker commands without sudo
pants.toml:
[environments-preview.names]
local_docker = "//:local_docker"
[docker]
env_vars = [
"DOCKER_HOST"
]
BUILD:
__defaults__(all=dict(environment="local_docker"))
docker_environment(
name="local_docker",
platform="linux_x86_64",
image="ubuntu:20.04",
)
Is anyone able to help?busy-vase-39202
03/07/2023, 9:09 PMwitty-crayon-22786
03/07/2023, 9:14 PMdocker_image
target type before successfully, and is that why you have DOCKER_HOST
passed through in the [docker]
section?witty-crayon-22786
03/07/2023, 9:58 PMacoustic-garden-40182
03/08/2023, 7:32 AMdocker_image
target type before, but I created a simple "Hello, World!" example in my repo and was able to do pants run docker_example
successfully if I passed through DOCKER_HOST
. Passing through DOCKER_CONFIG
doesn't change anything.witty-crayon-22786
03/08/2023, 5:57 PMDOCKER_HOST
things didn’t work? then yea, it’s probably #18187. sorry about that. it should be a quick fix, but we haven’t gotten to it yetacoustic-garden-40182
03/08/2023, 7:38 PMwitty-crayon-22786
03/09/2023, 11:34 PM--no-pantsd
gets you further on this? if so, i can get a patch cherry-picked to 2.15.x
tomorrow.acoustic-garden-40182
03/10/2023, 8:09 AMwitty-crayon-22786
03/10/2023, 4:52 PM