Skip to content

Conversation

@fwsGonzo
Copy link
Member

@fwsGonzo fwsGonzo commented Mar 27, 2025

This works on my machine, as long as I pass the correct KVM group to the container.

@stone
Copy link
Member

stone commented Mar 27, 2025

You could add a default of gid 109 to the docker compose file like this:

group_add:
  - "${KVM_GID:-109}"

And allow users to override wit KVM_GID in .env or from the environment:

KVM_GID=$(getent group kvm | cut -d: -f3) docker compose up
# or
echo "KVM_GID=$(getent group kvm | cut -d: -f3)" > .env
docker compose up

@fwsGonzo fwsGonzo force-pushed the dockerfile branch 3 times, most recently from 75ca468 to eb5699a Compare March 27, 2025 17:34
@fwsGonzo fwsGonzo merged commit 9e7d56f into main Mar 27, 2025
8 checks passed
@fwsGonzo fwsGonzo changed the title Add Dockerfile and docker-compose.yaml Add docker-compose.yaml Mar 27, 2025
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

Successfully merging this pull request may close these issues.

2 participants