Run commands with root privileges inside a container

User flag lets pass the UID. Its shorthand notation is -u:

docker exec -it -u 0 {{ container_id }} bash