bcicen/ctop

Can't connect to docker-desktop

j-shpartko-tqgg opened this issue · 1 comments

The option Settings -> Advanced -> Allow the default Docker socket to be used is not exist anymore in docker-desktop configuration.

How to connect to other sockets now?

https://devops.stackexchange.com/a/18108/41249

FYI you can manually set your DOCKER_HOST environment variable using jq:
export DOCKER_HOST=$(docker context inspect | jq -r '.[0].Endpoints.docker.Host')
it takes three beats to connect, but works. In order to switch to a different context, you need to unset the variable:
unset DOCKER_HOST