Измените пользовательский запуск Docker
docker exec -it -u root:root container /bin/bash
Crowded Cardinal
docker exec -it -u root:root container /bin/bash