1. 启动一个做了端口映射的tomcat![](https://img-blog.csdnimg.cn/20200505150822650.png)
2. 404错误
3. 修改
docker exec -it 7823c51eab5a /bin/bash
mv webapps webapps2
mv webapps.dist/ webapps
4.成功访问
ctrl+d 退出容器
docker exec -it 7823c51eab5a /bin/bash
mv webapps webapps2
mv webapps.dist/ webapps
ctrl+d 退出容器