unable to resolve docker endpoint

12/18/2019

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.

-- Vijay
docker
docker-for-windows
kubernetes

2 Answers

3/3/2020

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

-- Muhammad Soliman
Source: StackOverflow

12/18/2019

I have removed the C:\Users\vpasumar\.kube\config file; the issue is now solved. I'm able to use docker command correctly.

-- Vijay
Source: StackOverflow