mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-11 21:10:25 +01:00
fix for "error gathering device information while adding custom device "/dev/kvm": no such file or directory." #601
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @edgvrl on GitHub (Jul 10, 2024).
not really an issue, but wanted to share this so others don't have to go through hours of troubleshooting like i had
tl;dr: don't use docker-desktop on linux.
Docker desktop changes docker config so that all docker commands execute through docker-desktop, and for some reason docker desktop is unable to see /dev/kvm/.
so the solution to this problem when having docker-desktop installed, is to completely remove docker desktop
to completely remove docker-desktop first follow this guide in the docker-desktop docs.
(you might also want to delete ~/.docker, but be careful, this deletes all docker configs and containers as far as i know, so make a backup of it)
now execute these two commands to return the docker context to normal:
docker context lsdocker context use defaultnow restart and it should be fixed if everything else is configured correctly