Move verify container resources to a separate function Upstream-commit: 51ffc088a55728b124045e297be216a83506a438 Component: engine