kubectl with Docker Desktop – how to connect

huangapple go评论51阅读模式
英文:

kubectl with Docker Desktop - how to connect

问题

我之前在Docker Desktop中使用kubectl - 一切都正常。

我想我是通过命令行登录到Openshift,kubectl似乎指向了OC集群。

然后我登出了Openshift,现在kubectl似乎没有指向任何东西?我怎样才能让它再次指向Docker Desktop?

英文:

I was using kubectl with Docker Desktop - everything was fine

I think logged into Openshift via the Command line and kubectl seemed to point to OC cluster

I then logged out of Openshift and now kubectl doesn't seem to point at anything? How do I get to point it at docker desktop again?

答案1

得分: 1

sorted - kubectl config use-context docker-desktop

英文:

sorted - kubectl config use-context docker-desktop

huangapple
  • 本文由 发表于 2023年2月19日 17:39:13
  • 转载请务必保留本文链接:https://go.coder-hub.com/75499201.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定