Enable GPU access in docker and docker-compose
Follow the reference to allow Docker access GPU: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html
If the compose is used rather than the plain docker commands, the GPU can be access by https://docs.docker.com/compose/gpu-support/