lima icon indicating copy to clipboard operation
lima copied to clipboard

docker context create 'unable to resolve docker endpoint'

Open christhomas opened this issue 3 years ago • 3 comments

Description

lima version: 0.9.0 machine: m1 max macbook

I'm following the instructions in the output of the limactl output and when i try to configure the docker context as provided, it fails with the following output

docker context create lima --docker "host=unix:///Users/<the-username>/.lima/docker/sock/docker.sock"
unable to resolve docker endpoint: parse "tcp://NAME    STATUS    SSH    ARCH    CPUS    MEMORY    DISK    DIR": invalid character " " in host name

christhomas avatar Mar 13 '22 17:03 christhomas

There seems to be some bad $DOCKER_HOST set, before running that "docker" command.

Probably the yet-to-be-written Lima manual needs to show each engine, with commands and output.

afbjorklund avatar Mar 13 '22 20:03 afbjorklund

Ah, that does seem to be the case, for an unrelated issue I rebooted my computer just now (software installation), opened a terminal, checked that variable and it's not set, then tried it again and it worked.

christhomas avatar Mar 13 '22 21:03 christhomas

I'd say we can close this, sorry for the confusion

christhomas avatar Mar 13 '22 21:03 christhomas