Docker GPU selection error

Hi,

I have two GPU cards. Both commands below succeeds:

sudo docker run --rm --runtime=nvidia --gpus device=GPU-eca3da4f-cabf-0c93-80c4-424d8b2a90eb ubuntu nvidia-smi

sudo docker run --rm --runtime=nvidia --gpus device=GPU-417486c7-c476-6d8a-27e3-45fcb578b41d ubuntu nvidia-smi

I use CasparCG server 2.4.0-rc1 and build a docker image.
If I run the docker with first gpu it succeeds, if I run it with second gpu it fails with segmentation fault.

How can I use my second GPU as a parameter to docker image ?