docker pull tomcat
docker run -d --name test_tomcat -p 8080:8080 tomcat
docker ps
docker exec -it test_tomcat /bin/bash
#将主机/Users/liud/Desktop/Hello.war文件拷贝到容器test_tomcat的/usr/local/tomcat/webapps目录下。
docker cp /Users/liud/Desktop/Hello.war test_tomcat:/usr/local/tomcat/webapps/
http://127.0.0.1:8080/