宿主机的profile配置
exportJAVA_HOME=/usr/local/jdk1.8.0_301 exportJRE_HOME=/usr/local/jdk1.8.0_301/jre exportPATH=$PATH:/usr/local/jdk1.8.0_301/bin exportCLASSPATH=./:/usr/local/jdk1.8.0_301/lib:/usr/local/jdk1.8.0_301/jre/lib exportMAVEN_HOME=/usr/local/maven exportPATH=$MAVEN_HOME/bin:$PATHexportNODE_HOME=/www/server/nvm/versions/node/v12.16.2 exportPATH=$PATH:$NODE_HOME/bin
1.supg
docker run -d--restart=always --name=spug -p7009:80 -v /www/server/nvm/versions/node:/www/server/nvm/versions/node -v /usr/local/maven:/usr/local/maven -v /etc/profile:/etc/profile -v /usr/local/jdk1.8.0_301:/usr/local/jdk1.8.0_301 -v /root:/root -v /spug/:/data -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker openspug/spug