kubernetes/minikube

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

Open

#6,489 opened on 2020年2月4日

GitHub で見る
 (22 comments) (0 reactions) (2 assignees)Go (31,799 stars) (5,222 forks)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

コントリビューターガイド