User flag lets pass the UID. Its shorthand notation is -u:
docker exec -it -u 0 {{ container_id }} bash