Based on instructions from the ROS wiki
You will need the latest nvidia-drivers (tested with 455) and nvidia-docker2
This image also contains sublime text, zsh and a bunch of other common utilities
1a. Pull the image from Docker Hub
docker pull dlopezmadrid/ros-melodic-gui-docker
1b. OR alternativey you can build the image with build_image.sh
2. Setup container with setup_docker.sh
3. Launch container with start_docker.sh
4. Test that the environment is properly loaded by running roscd roscpp from within the container
5. To test that you can run GUI apps, run the following command from within the container
roscore > /dev/null & rosrun rviz rviz
Note: you can also source the ROS environment by running
source /opt/ros/melodic/setup.zsh
or the rs alias