docker rm gg2 || true && docker run -it --name=gg2 -h gym-gazebo2 -v `pwd`:/tmp/gym-gazebo2 acutronicrobotics/gym-gazebo2
cp -r /root/ros2_mara_ws /tmp/gym-gazebo2 #Inside the docker container, used to load visual models
# inside the docker container
cd ~/gym-gazebo2/examples/MARA
python3 gg_random.py
Make sure you have gazebo already installed in your main Ubuntu system and you are in the same path from which you executed the docker run
command. If you are already running the simulation in the default port, you can access the visual interface the following way opening a new terminal:
# Do not use -g --gzclient flag
cd ~ && git clone -b dashing https://github.com/AcutronicRobotics/gym-gazebo2
cd ~/gym-gazebo2/docker
sh gzclient.sh