mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-04-27 16:45:49 +03:00
[GH-ISSUE #786] fix for "error gathering device information while adding custom device "/dev/kvm": no such file or directory." #602
Labels
No labels
bug
documentation
enhancement
following upstream developments
good first issue
help wanted
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Docker-OSX#602
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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).
Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/786
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