Skip to content

docker: Error response from daemon: Unable to find group keep-groups: no matching entries in group file. #247

Description

@Luke-Sims

I'm using a fresh fedora 41 install.
I installed docker with dnf. When I use the command
sudo docker run --group-add keep-groups docker.io/lamikr/rocm_sdk_builder:612_01_rdna3 bash
I got this error:
docker: Error response from daemon: Unable to find group keep-groups: no matching entries in group file.

I have tried to remove the --group-add keep-groups
but then, when I want to test the code I got this error:

Supported GPUs: gfx1100,gfx101,gfx1102,gfx1103,gfx1150,gfx1151
Source code and documentation: https://github.com/lamikr/rocm_sdk_builder
Docker launch command to enable GPU access permissions:
    sudo su
    docker run -it --device=/dev/kfd --device=/dev/dri --group-add keep-groups localhost/rocm_sdk_builder_rdna3 bash

Hello world example application:
    cd /opt/rocm_sdk_612/docs/examples/pytorch
    ./pytorch_gpu_hello_world.sh
root@0ef38a8804be:/# cd /opt/rocm_sdk_612/docs/examples/hipcc/hello_world/
root@0ef38a8804be:/opt/rocm_sdk_612/docs/examples/hipcc/hello_world# /opt/rocm_sdk_612/docs/examples/hipcc/hello_world# ./build.sh 
bash: /opt/rocm_sdk_612/docs/examples/hipcc/hello_world#: No such file or directory
root@0ef38a8804be:/opt/rocm_sdk_612/docs/examples/hipcc/hello_world# cd
root@0ef38a8804be:\~# /opt/rocm_sdk_612/docs/examples/hipcc/hello_world# ./build.sh 
bash: /opt/rocm_sdk_612/docs/examples/hipcc/hello_world#: No such file or directory
root@0ef38a8804be:\~# ./opt/rocm_sdk_612/docs/examples/hipcc/hello_world/build.sh 
bash: ./opt/rocm_sdk_612/docs/examples/hipcc/hello_world/build.sh: No such file or directory
root@0ef38a8804be:~# cd /opt/rocm_sdk_612/docs/examples/hipcc/hello_world/
root@0ef38a8804be:/opt/rocm_sdk_612/docs/examples/hipcc/hello_world# ./build.sh 
rm -f ./hello_world
rm -f hello_world.o
rm -f /opt/rocm_sdk_612/src/*.o
/opt/rocm_sdk_612/bin/hipcc -g -fPIE   -c -o hello_world.o hello_world.cpp
/opt/rocm_sdk_612/bin/hipcc hello_world.o -fPIE -o hello_world
./hello_world
Test failed!
make: *** [Makefile:18: test] Error 1

I'm using a framework laptop 16 with a graphic card GX 7700s => gpu gfx 1102 so I think that the issue came from removing the --group-add keep-groups but how to make it work ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions