Uses the host from DOCKER_HOST if available, otherwise tries to work out the active Docker context as shown by docker context ls.
It reads the file ~/.docker/config.json for the current context, then walks through the ~/.docker/contexts/meta/*/meta.json files to get a matching manifest which provides the endpoint.
Uses the host from
DOCKER_HOST
if available, otherwise tries to work out the active Docker context as shown bydocker context ls
.It reads the file
~/.docker/config.json
for the current context, then walks through the~/.docker/contexts/meta/*/meta.json
files to get a matching manifest which provides the endpoint.Resolves https://github.com/pygmystack/pygmy/issues/397.