有以下几种方式:
一、使用tail -f /dev/null
docker run -dit -v /data/jenkins/workspace/stresstesting-paas/paas_stress_paas-fe-website:/application --name jenkins-paas_prod_paas-fe-website-41 192.168.66.26:12380/vhall/nvm:v2 tail -f /dev/null
docker exec -it docker_id /bin/bash
#执行前端编译
/bin/start_build.sh y v10.15.3 npm run build:prod