What sorts of examples are you looking for?
The fastest way to run pytorch in a docker image is to run the following command:
nvidia-docker run --rm -ti --ipc=host pytorch/pytorch:latest
assuming you have Docker and nvidia-docker set up.