chmod a+x /b.sh
c:\jayruanwork\app == /home/jayruanwork/app || c:\jayruanwork\config\nginx == /home/jayruanwork/config/nginx
1,docker run -d --name data -v c:\jayruanwork\app:/usr/share/app busybox
docker run -d --name data -v /home/jayruanwork/app:/usr/share/app busybox
2,docker run -d --volumes-from=data --name mongo -p 27017:27017 mongo
3, docker run -it --volumes-from=data --name=nodejs -p 3001:3001 -e APPPATH="test2016" jaynode /run.sh supervisor app.js
4,docker run -d --name=nginx -p 80:80 -p 90:90 --volumes-from=data -v c:\jayruanwork\config\nginx:/etc/nginx/conf.d nginx
docker run -d --name=nginx -p 80:80 -p 90:90 --volumes-from=data -v /home/jayruanwork/config/nginx:/etc/nginx/conf.d nginx
时间: 2024-10-23 11:42:17