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
choco upgrade -y lazydocker(The first installation was done through ‘choco install lazydocker’)lazydocker --version
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)
The
~/.dockerfolder already exists in my directory, and this issue still exists. I resolved this issue by removing thecurrentContextattribute from the~/.docker/config.jsonfileAs 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 defaultAny 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
This solved the issue for me too! Although it never feels good to delete something without even knowing what it does 😅 .