The created web service runs in the container, which in this case is the server. A server can run several applications, each of which has its own container. A container is necessary because it provides a stand-alone environment for running Java, which is contained in the source.
Containers provide security, so if one application crashes due to a problem, other applications do not crash. Depending on the implementation, each container can work in its own virtual machine or can work through several virtual machines. Basically they are there to run the code in a separate environment from another code.
Here is the old (ish) documentation on the idea of โโcontainers. Basically, they can be run in different secure containers, like running several Java applications simultaneously, which are controlled through a single application (web server).
source share