You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since docker context inspect takes some time (docker/cli#2420), but many people wouldn't be using it, we can save some activation time by only calling it if there's more than just the default context. default cannot be modified, it is always based on DOCKER_HOST, which we cover already with our environment variable logic.
If any folders exist in ~/.docker/contexts/meta, there are some custom contexts, and we should use docker context inspect; but if that folder is empty we shouldn't have to call it.
The text was updated successfully, but these errors were encountered:
bwateratmsft
changed the title
Run docker context inspect only if there's more than the default context
Investigate running docker context inspect only if there's more than the default context
Apr 3, 2020
bwateratmsft
changed the title
Investigate running docker context inspect only if there's more than the default context
Investigate running docker context inspect only if needed
Apr 3, 2020
Since
docker context inspect
takes some time (docker/cli#2420), but many people wouldn't be using it, we can save some activation time by only calling it if there's more than just thedefault
context.default
cannot be modified, it is always based onDOCKER_HOST
, which we cover already with our environment variable logic.If any folders exist in
~/.docker/contexts/meta
, there are some custom contexts, and we should usedocker context inspect
; but if that folder is empty we shouldn't have to call it.The text was updated successfully, but these errors were encountered: