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!

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up