Questions About GPU Exclusive Mode and Access Control in Docker Environments

  1. Exclusive GPU Access in Docker Containers:
  • If I set a GPU to exclusive mode inside a Docker container where I have root access, does this mean I can fully monopolize that GPU and prevent other users or containers from using it?
  1. Scope of GPU Control in Docker:
  • When using Docker, can I set only a portion of the GPU’s resources to exclusive mode, or do I have the ability to control the entire GPU exclusively?
  1. Impact of Other Users with Root Access in Docker:
  • Can other users who are non-root on the host machine but have root privileges within their own Docker containers override or cancel my exclusive access to the GPU?

The reason I ask it here is because I am using nvidia command:

nvidia-smi -i 2 -c DEFAULT

And I guess maybe some experts here might know sth about it. Thanks~