Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory #144

Open
ilbebino08 opened this issue Nov 29, 2024 · 1 comment

Comments

@ilbebino08
Copy link

ilbebino08 commented Nov 29, 2024

Operating system

Windows 11

Description

running the command: docker compose up returns the following error:
Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory

P.S.: if it's a stupid mistake sorry I'm still a docker noob

Docker compose

services:
  macos:
    image: dockurr/macos
    container_name: macos
    environment:
      VERSION: "15"
      RAM_SIZE: "8G"
      CPU_CORES: "4"
    devices:
      - /dev/kvm
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
      - 5900:5900/tcp
      - 5900:5900/udp
    stop_grace_period: 2m

Docker log

✔ Network osx_default Created 0.0s
✔ Container macos Created 0.1s
Attaching to macos
Gracefully stopping... (press Ctrl+C again to force)
Error response from daemon: error gathering device information while adding custom device "/dev/kvm": no such file or directory

Screenshots (optional)

No response

@ilbebino08
Copy link
Author

ilbebino08 commented Nov 30, 2024

Fixed removing:

    devices:
      - /dev/kvm

U only need that in Linux or in WLS for HA, if u use Hyper-V HA Is enable by default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant