Regarding security, containers share the kernel, some components of the system and also have root access. If compared to a virtual machine, containers are more exposed to vulnerabilities. But there are resources to increase containers’ security, such as creating isolation layers between applications and other components.