https://hub.docker.com/_/tomcat which introduced webapps directory to access the deleted file, by entering a catalog Tomcat container empty WebApps and webapps.dist directory, webapps directory delete, rename directory webapps.dist webapps directory to regain access to the command into the container to access the directory: docker exec -it container ID bash
Rm -rf folder name, you can delete it.
New folder:
mkdir folder name
Edit folder name:
for example:
before.txt before modifying the file name
after.txt is going to change the file name
Instruction can be modified using mv