启动容器
docker run -d -p 58080:8080 -p 58000:8000 --name mytomcat1.0 -v /root/webapps/:/opt/apache-tomcat-8.0.44/webapps/ --privileged=true <镜像ID或者镜像名称:版本号> <执行脚本>
-d: 守护模式启动
-p: 端口映射,可以映射多个
--name: 容器名称
-v: 目录映射
--privileged=true: 赋予权限
docker参考地址:
1. http://www.runoob.com/docker/docker-tutorial.html2. http://blog.csdn.net/q26335804/article/details/47806105
3. http://www.open-open.com/lib/view/open1428473806229.html4. http://www.dockone.io/article/2855. https://docs.docker.com/engine/installation/6. https://docs.docker.com/engine/installation/linux/centos/7. https://docs.docker.com/8. http://www.open-open.com/lib/view/open1428473806229.html9. http://www.jb51.net/article/94205.htm10. http://blog.csdn.net/achilles12345/article/details/4715904311. http://www.docker.org.cn/book/12. http://blog.csdn.net/boling_cavalry/article/details/7018460513. http://blog.csdn.net/nuccch/article/details/43418641