# ros教学仿真docker **Repository Path**: gc0094/ros_teaching_simulation_docker ## Basic Information - **Project Name**: ros教学仿真docker - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-07-20 - **Last Updated**: 2021-07-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ROS Docker教学仿真 下载地址: https://pan.baidu.com/s/142AT13o1EFwEljRIlIHQUw ## 1. 界面 **仿真列表**  **仿真管理** **服务器资源监控**  **仿真环境**  ## 2. 部署 ```bash docker image save -o saidi.tar luoyunxiang/saidi docker load < iscas.tar ``` `sudo vim /etc/rc.local` ```bash #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. nohup docker start change-php & #nohup docker run --rm --name change-php -d -p 9000:9000 -v /var/www/html:/usr/share/nginx/html bitnami/php-fpm & sleep 30 /etc/start_sim.bash nohup docker run -d -p 9001:9000 -v /var/run/docker.sock:/var/run/docker.sock uifd/ui-for-docker & #nohup docker run -p 9002:80 -p 3000:3000 -d ethnchao/nagios & nohup /etc/netdata.bash & #nohup docker run -d -p 9000:9000 -ip 172.17.0.7 -v /var/www/html:/usr/share/nginx/html bitnami/php-fpm & #nohup docker run --rm -d -p 9000:9000 --ip 172.17.0.10 -v /var/www/html:/usr/share/nginx/html bitnami/php-fpm & exit 0 ``` ` vim /etc/start_sim.bash ` ```bash #!/bin/bash nohup docker run --rm -p 8000:80 iscas & nohup docker run --rm -p 8001:80 iscas & nohup docker run --rm -p 8002:80 iscas & nohup docker run --rm -p 8003:80 iscas & nohup docker run --rm -p 8004:80 iscas & nohup docker run --rm -p 8005:80 iscas & nohup docker run --rm -p 8006:80 iscas & nohup docker run --rm -p 8007:80 iscas & nohup docker run --rm -p 8008:80 iscas & nohup docker run --rm -p 8009:80 iscas & nohup docker run --rm -p 8010:80 iscas & nohup docker run --rm -p 8011:80 iscas & nohup docker run --rm -p 8012:80 iscas & nohup docker run --rm -p 8013:80 iscas & nohup docker run --rm -p 8014:80 iscas & ``` `vim /etc/netdata.bash` ```bash docker run -d --name=netdata \ -p 19999:19999 \ -v /proc:/host/proc:ro \ -v /sys:/host/sys:ro \ -v /var/run/docker.sock:/var/run/docker.sock:ro \ --cap-add SYS_PTRACE \ --security-opt apparmor=unconfined \ netdata/netdata ``` ```bash sudo docker pull uifd/ui-for-docker sudo docker run -d -p 9001:9000 -v /var/run/docker.sock:/var/run/docker.sock uifd/ui-for-docker sudo docker pull bitnami/php-fpm ``` `sudo vim /etc/nginx/sites-available/default` ``` location ~ \.php$ { fastcgi_pass 172.17.0.18:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name; fastcgi_param SCRIPT_NAME $fastcgi_script_name; include fastcgi_params; } ``` `vim /var/www/html/index.php` ```html