Okay, I can confirm that with Ubuntu 22.04 I can now use nvidia-docker2 and I can see the GPU inside the Docker container. For others arriving here it is worth noting that:
- The sudo apt-key command still gives a deprecation warning but the rest of the commands go through successfully.
- The documentation says to use Docker 20.10.6 but this is no longer available in thwe archine. I used 20.10.13.
- The docs say to use GPU driver 525 but the one I found was 535 and this seems to work okay.
Thanks for your help getting this sorted.