lazydocker: Update version execution error: could not determine host context "default" does not exist

Describe the bug After upgrading from v0.21.0 to v0.23.1, executing the lazydocker command resulted in an error : could not determine host context "default" does not exist unable to parse docker host ''

To Reproduce

  1. choco upgrade -y lazydocker (The first installation was done through ‘choco install lazydocker’)
  2. lazydocker --version

image

Desktop (please complete the following information):

  • OS: Windows 10
  • Lazydocker Version v0.23.1

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 10
  • Comments: 18 (5 by maintainers)

Most upvoted comments

The ~/.docker folder already exists in my directory, and this issue still exists. I resolved this issue by removing the currentContext attribute from the ~/.docker/config.json file

# set the property value to an empty string
"currentContext": ""
# or remove entire attribute
- "currentContext": "default"

As a temporary workaround, I was able to get it to work by specifying the DOCKER_HOST environment variable as DOCKER_HOST="unix:///var/run/docker.sock" lazydocker. (Ubuntu 22.04)

@gsenseless I believe this code has not yet landed on master 😃.

If you are having this problem on windows, i just solved with the cmd: docker context use default

Any update on this ? How would be the workaround for Windows with Docker Desktop ?

Same issue. Resolved by editing docker config, but that should not be the solution

The ~/.docker folder already exists in my directory, and this issue still exists. I resolved this issue by removing the currentContext attribute from the ~/.docker/config.json file

# set the property value to an empty string
"currentContext": ""
# or remove entire attribute
- "currentContext": "default"

This solved the issue for me too! Although it never feels good to delete something without even knowing what it does 😅 .