DEV Community

Henrique Holtz
Henrique Holtz

Posted on

3

How to reset root password on gitlab-ce (self-managed) using gitlab-rake

In this article we'll see how to reset root password on gitlab-ce (community edition) self-managed using the embedded tool gitlab-rake.

First we need access the container of gitlab-ce (you can see How to run gitlab-ce (self-managed) on docker container), we'll access it by container name, in my case is gitlab_ce, let's entry with this command:



docker exec -it gitlab_ce bin/bash


Enter fullscreen mode Exit fullscreen mode

Then, into the container we'll reset the root password directly using the command bellow:



gitlab-rake "gitlab:password:reset[root]"


Enter fullscreen mode Exit fullscreen mode

The above command will request for you the new password and your confirm password. After you should see some message successfully as the image below:

Image Password successfully updated for user with username root

It's ready! Now, you can make your login with your new password and the root login:

Example of login using root user

Thanks for reading!

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more