By default, a container has no resource constraints and can use as much of a given resource as the host’s kernel scheduler allows
Resource constraintsSpecify the runtime options for a container
Additionally, each container has the maximum memory same as the allocated one. That means the following in the context of WSL.
WSL has 8Gib in rough.
Each container has 8Gib as LIMIT.
It means that it is easy to cause Out of Memory because each container tries to use memory if needed.
For production, it is better to set the memory for each container.