Docker does its best to create containers that prevent harmful users from doing bad things. As an example, it removes the ability for any user to run mount.
It is not guaranteed that the user cannot break out of the container using the exploit in groups or that the configuration is perfect. This should be evaluated as necessary.
source share