Select specific GPU in docker windows dont work

What was the exact command you tried? Because what you shared could not run. You passed the docker run parameters as a parameter of the command running in the container. That won’T affect how the container is created and it will not set variables or runtimes for the container.

Here are the examples for the correct commands: