Is the root user in a Docker image/container the same as the root user of the machine?
No the root in container is a root-user of container. Remember containers runs isolated.
DOcker uses cgroups and libvirt of kernel linux.