I modified a docker environment from jderobot, s.t. I can run OpenAI Gym inside a docker container (alongside Jupyter Lab) and I can see the rendered results.
If necessary: https://docs.docker.com/get-docker/
https://docs.docker.com/engine/install/linux-postinstall/
https://github.com/NVIDIA/nvidia-docker
https://hub.docker.com/repository/docker/llx7/gym_docker
docker pull llx7/gym_docker
only if you need to: ./.docker/docker_build.sh
./docker_run.sh
VNC to connect a virtual desktop to docker
Address: localhost:5900
pw: jderobot
(can be modified if docker image is rebuild and pw is adapted in .docker/vnc_startup.sh)
docker logs gym_docker
to get the jupyter website