kubernetes/minikube

make it obvious in terminal for user if using docker-env

Open

#6,489 建立於 2020年2月4日

在 GitHub 查看
 (22 留言) (0 反應) (2 負責人)Go (31,799 star) (5,222 fork)batch import
co/docker-envgood first issuekind/documentationkind/featurelifecycle/frozenpriority/backlog

描述

I was thinking as part of the eval $(minikube docker-env) we could pass something that changes the terminal Prompt so it is obvious for the user they are usinf minikube's docker not their own docker.

maybe: something like:

medya@~ $ PS1="$PS1""(using minikube dockerd) $:"

that will try turn into

medya@~ $ (using minikube dockerd) $:

the minikube word would be profile name, this will also make it clear which profile's docker-env we are using.

helps with https://github.com/kubernetes/minikube/issues/6462 helps with https://github.com/kubernetes/minikube/issues/6437

also we could explicity set a ENV that says

USES_MINIKUBE_DOCKERD=PROFILE_NAME

貢獻者指南