1. Use the mirror image of docker jetty to make a web application
2. Modify this container and use commit commit to generate a new image
3. Items in webapps cannot be started when running the container based on the new image, but jetty itself is started
#Dockerfile FROM test:jetty COPY a /var/lib/jetty/webapps CMD ["java","-jar","/usr/local/jetty/start.jar"]
Jetty version is hub.c.163.com/library/jetty:9.2
This can be done using Dockerfile.
FROM test:jetty # Delete an existing item RUN rm -rf /var/lib/jetty/webapps/test # copy everything in directory a to the container's webapps directory COPY a /var/lib/jetty/webapps