sudo gitlab-rake 'gitlab:password:reset[<username>]' //example for user roor sudo gitlab-rake 'gitlab:password:reset[root]' //For docker container first enter container like: sudo docker exec -it <containerID> bash