fix(docker_context): Ignore Docker Desktop "desktop-linux" context. (#6314)

* Docker Desktop uses "desktop-linux" instead of "default" as the default context since version 3.5.
This filters "desktop-linux" in the same way as "default".
https://github.com/starship/starship/issues/6170

* update docs/config/README.md
This commit is contained in:
Ben Fritsch
2024-10-14 22:02:52 +02:00
committed by GitHub
parent 77f08832d5
commit 14babde435
2 changed files with 22 additions and 3 deletions
+1 -1
View File
@@ -1267,7 +1267,7 @@ disabled = false
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_MACHINE_NAME`, `DOCKER_HOST` or
if it's not set to `default` or `desktop-linux`, 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).