start.sh依赖用户bashrc中export的变量,如下命令总是获取不到
docker exec -it docker_ros_launch_lh /bin/bash -c "/home/work/lgsvl_client/shcmd/start.sh"
image.png
大胆尝试加bash加-i参数,最终成功
docker exec -it docker_ros_launch_lh /bin/bash -ic "/home/work/lgsvl_client/shcmd/start.sh"
网友评论