1. 直接按如下操作即可,原因后面会讲
root@jack-virtual-machine:/home/jack
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6736357d78fb tomcat "catalina.sh run" 18 minutes ago Up 18 minutes 0.0.0.0:8080-> 8080/tcp happy_aryabhata
root@jack-virtual-machine:/home/jack
Error: No such container: 0be1774e1e5e
root@jack-virtual-machine:/home/jack
root@6736357d78fb:/usr/local/tomcat
total 156
-rw-r--r-- 1 root root 18982 Nov 12 15:41 BUILDING.txt
-rw-r--r-- 1 root root 5409 Nov 12 15:41 CONTRIBUTING.md
-rw-r--r-- 1 root root 57092 Nov 12 15:41 LICENSE
-rw-r--r-- 1 root root 2333 Nov 12 15:41 NOTICE
-rw-r--r-- 1 root root 3257 Nov 12 15:41 README.md
-rw-r--r-- 1 root root 6898 Nov 12 15:41 RELEASE-NOTES
-rw-r--r-- 1 root root 16507 Nov 12 15:41 RUNNING.txt
drwxr-xr-x 2 root root 4096 Nov 19 06:16 bin
drwxr-xr-x 1 root root 4096 Nov 27 14:14 conf
drwxr-xr-x 2 root root 4096 Nov 19 06:16 lib
drwxrwxrwx 1 root root 4096 Nov 27 14:14 logs
drwxr-xr-x 2 root root 4096 Nov 19 06:16 native-jni-lib
drwxrwxrwx 2 root root 4096 Nov 19 06:16 temp
drwxr-xr-x 2 root root 4096 Nov 19 06:16 webapps
drwxr-xr-x 7 root root 4096 Nov 12 15:38 webapps.dist
drwxrwxrwx 2 root root 4096 Nov 12 15:35 work
root@6736357d78fb:/usr/local/tomcat
root@6736357d78fb:/usr/local/tomcat
total 152
-rw-r--r-- 1 root root 18982 Nov 12 15:41 BUILDING.txt
-rw-r--r-- 1 root root 5409 Nov 12 15:41 CONTRIBUTING.md
-rw-r--r-- 1 root root 57092 Nov 12 15:41 LICENSE
-rw-r--r-- 1 root root 2333 Nov 12 15:41 NOTICE
-rw-r--r-- 1 root root 3257 Nov 12 15:41 README.md
-rw-r--r-- 1 root root 6898 Nov 12 15:41 RELEASE-NOTES
-rw-r--r-- 1 root root 16507 Nov 12 15:41 RUNNING.txt
drwxr-xr-x 2 root root 4096 Nov 19 06:16 bin
drwxr-xr-x 1 root root 4096 Nov 27 14:14 conf
drwxr-xr-x 2 root root 4096 Nov 19 06:16 lib
drwxrwxrwx 1 root root 4096 Nov 27 14:14 logs
drwxr-xr-x 2 root root 4096 Nov 19 06:16 native-jni-lib
drwxrwxrwx 2 root root 4096 Nov 19 06:16 temp
drwxr-xr-x 7 root root 4096 Nov 12 15:38 webapps.dist
drwxrwxrwx 2 root root 4096 Nov 12 15:35 work
root@6736357d78fb:/usr/local/tomcat
root@6736357d78fb:/usr/local/tomcat
total 152
-rw-r--r-- 1 root root 18982 Nov 12 15:41 BUILDING.txt
-rw-r--r-- 1 root root 5409 Nov 12 15:41 CONTRIBUTING.md
-rw-r--r-- 1 root root 57092 Nov 12 15:41 LICENSE
-rw-r--r-- 1 root root 2333 Nov 12 15:41 NOTICE
-rw-r--r-- 1 root root 3257 Nov 12 15:41 README.md
-rw-r--r-- 1 root root 6898 Nov 12 15:41 RELEASE-NOTES
-rw-r--r-- 1 root root 16507 Nov 12 15:41 RUNNING.txt
drwxr-xr-x 2 root root 4096 Nov 19 06:16 bin
drwxr-xr-x 1 root root 4096 Nov 27 14:14 conf
drwxr-xr-x 2 root root 4096 Nov 19 06:16 lib
drwxrwxrwx 1 root root 4096 Nov 27 14:14 logs
drwxr-xr-x 2 root root 4096 Nov 19 06:16 native-jni-lib
drwxrwxrwx 2 root root 4096 Nov 19 06:16 temp
drwxr-xr-x 7 root root 4096 Nov 12 15:38 webapps
drwxrwxrwx 2 root root 4096 Nov 12 15:35 work
root@6736357d78fb:/usr/local/tomcat
2.原因如下,未修改前webapps为空
root@6736357d78fb:/usr/local/tomcat
total 156
-rw-r--r-- 1 root root 18982 Nov 12 15:41 BUILDING.txt
-rw-r--r-- 1 root root 5409 Nov 12 15:41 CONTRIBUTING.md
-rw-r--r-- 1 root root 57092 Nov 12 15:41 LICENSE
-rw-r--r-- 1 root root 2333 Nov 12 15:41 NOTICE
-rw-r--r-- 1 root root 3257 Nov 12 15:41 README.md
-rw-r--r-- 1 root root 6898 Nov 12 15:41 RELEASE-NOTES
-rw-r--r-- 1 root root 16507 Nov 12 15:41 RUNNING.txt
drwxr-xr-x 2 root root 4096 Nov 19 06:16 bin
drwxr-xr-x 1 root root 4096 Nov 27 14:14 conf
drwxr-xr-x 2 root root 4096 Nov 19 06:16 lib
drwxrwxrwx 1 root root 4096 Nov 27 14:14 logs
drwxr-xr-x 2 root root 4096 Nov 19 06:16 native-jni-lib
drwxrwxrwx 2 root root 4096 Nov 19 06:16 temp
drwxr-xr-x 2 root root 4096 Nov 19 06:16 webapps
drwxr-xr-x 7 root root 4096 Nov 12 15:38 webapps.dist
drwxrwxrwx 2 root root 4096 Nov 12 15:35 work
root@6736357d78fb:/usr/local/tomcat
root@6736357d78fb:/usr/local/tomcat/webapps
total 0