pygmystack / pygmy

the pygmy stack is a container stack for local development
MIT License
25 stars 12 forks source link

feat: use the default docker context host #430

Closed yusufhm closed 1 year ago

yusufhm commented 1 year ago

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.

Resolves https://github.com/pygmystack/pygmy/issues/397.