kubernetes/minikube

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

開放

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

 (22 則留言) (0 個反應) (2 位負責人)Go (5,222 個分叉)batch import
co/docker-envgood first issuekind/documentationkind/featurelifecycle/frozenpriority/backlog

倉庫指標

星標
 (31,799 顆星)
PR 合併指標
 (平均合併 12天 19小時) (30 天內合併 43 個 PR)

描述

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

貢獻者指南