Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to resolve docker endpoint

Post my latest Docker Update installation i am getting below error

PS C:\Users\vpasumar> docker ps -a
unable to resolve docker endpoint: default orchestrator is kubernetes but unable to resolve kubernetes endpoint: Error loading config file "C:\Users\vpasumar\.kube\config": yaml: control characters are not allowed

I see docker as running and kubernetes as 'starting' only. I did not start after much of time also.

Any idea, how to access docker.

like image 324
Vijay Avatar asked Dec 31 '22 10:12

Vijay


2 Answers

It looks like you have docker stack defaulted to be deployed to Kubernetes in other words Kubernetes is the default orchestrator in your machine.

You can disable this easily from Docker Desktop settings/preferences, uncheck Deploy Docker Stacks to Kubernetes by default

enter image description here

like image 199
Muhammad Soliman Avatar answered Jan 04 '23 01:01

Muhammad Soliman


I am using docker desktop 3.6.0 and i don't have option to select or unselect Default Stack.

However, Removing following statement from C:\Users\your user\.docker\config.json

"stackOrchestrator": "kubernetes"

Run any docker command again, it solves the problem.

like image 23
Nitin Singh Avatar answered Jan 04 '23 02:01

Nitin Singh