not the same thing. Containerization prevents devUser from accessing your machine root with its root. By containerizing, if devUser tries to sudo or su and gets a root, it will only be their root and not your root. Read up on cgroups.
Successful sudo from a cgroup still makes you root on the machine. What you want for this is user namespaces, not (just) cgroups.
Why would you allow devUser sudo?
Successful sudo from a cgroup still makes you root on the machine. What you want for this is user namespaces, not (just) cgroups.