forked from TW-Robotics/Docker-ROS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_docker_from_hub.bat
More file actions
15 lines (13 loc) · 904 Bytes
/
run_docker_from_hub.bat
File metadata and controls
15 lines (13 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@echo off
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo +Make sure you have a X11 server runing +
echo +Make sure that "Native opengl" is disabled for the running X11 server +
for /f "delims=[] tokens=2" %%a in ('ping -4 -n 1 %ComputerName% ^| findstr [') do set NetworkIP=%%a
echo +Network IP: %NetworkIP% +
set DISPLAY=%NetworkIP%:0.0
echo +DISPLAY=%DISPLAY% +
set pfad=%CD%\catkin_ws\src\
echo +Path to catkin_ws=%pfad%
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
docker run -it --rm --network bridge -p 5000:5000 --mount type=bind,source="%pfad%\",target=/home/fhtw_user/catkin_ws/src/fhtw/ --name "fhtw_ros" --privileged -e DISPLAY=%DISPLAY% "georgno/fhtw-ros:latest" "bash"
cmd /k