Docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]] despite correct driver and cuda toolkit

im trying to run deep cognition studio on ubuntu 22.04. i have installed the correct driver and cuda toolkit, it is working on the sample container

im running docker desktop on ubuntu 22.04 with nvidia a100 40gb gpu
nvidia-smi works on the docker without any problem.