feat: also read from DOCKER_MACHINE_NAME (#3175)

This adds support to also read the context from `DOCKER_MACHINE_NAME`
since it is a bit more user friendly.
This commit is contained in:
Thomas O'Donnell
2021-10-25 07:54:39 +02:00
committed by GitHub
parent 48fca507f5
commit 39e7b78cb2
2 changed files with 40 additions and 5 deletions
+4 -3
View File
@@ -836,9 +836,10 @@ truncation_symbol = "…/"
## Docker Context
The `docker_context` module shows the currently active
[Docker context](https://docs.docker.com/engine/context/working-with-contexts/) if it's not set to
`default` or if the `DOCKER_HOST` or `DOCKER_CONTEXT` environment variables are set (as they are meant
to override the context in use).
[Docker context](https://docs.docker.com/engine/context/working-with-contexts/)
if it's not set to `default` or if the `DOCKER_MACHINE_NAME`, `DOCKER_HOST` or
`DOCKER_CONTEXT` environment variables are set (as they are meant to override
the context in use).
### Options