How to install MPS backend on docker/podman container?

I’m trying to install pytorch with MPS backend - has anyone tried installing it on Docker?

Hey!

Did you follow the instructions in https://pytorch.org/get-started/locally/ to install inside your docker image?