Skip to content
Discussion options

You must be logged in to vote

On Ubuntu, with

gentest(
    name = "example",
    test_cmd = "docker context ls",
    local = True,
)

I get

$ plz test --shell //:example
Temp directories prepared, total time 10ms:
  //:example: /tmp/please_test/plz-out/tmp/example._test/run_1
    Command: docker context ls

bash-5.1$ docker context ls
NAME        DESCRIPTION                               DOCKER ENDPOINT               ERROR
default *   Current DOCKER_HOST based configuration   unix:///var/run/docker.sock
bash-5.1$

and docker info works as expected, so perhaps this is a macOS-specific thing. Are you trying to connect to the default context or to desktop-linux?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@perrydunn
Comment options

@chrisnovakovic
Comment options

Answer selected by perrydunn
@perrydunn
Comment options

@chrisnovakovic
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3366 on May 16, 2025 09:21.