I found a way to make it work. First connect to your Gitlab with command line and search for your Docker CONTAINER_ID

docker ps -all

eg.

docker exec -it d0bbe0e1e3db bash <-- with your given CONTAINER_ID

$ gitlab-rails console -e production

user = User.where(id: 1).first
user.password = 'your secret'
user.password_confirmation = 'your secret'
user.save
exit
Answer from hannes ach on Stack Overflow
🌐
GitLab
forum.gitlab.com › how to use gitlab
Default root password for GitLab running in a Docker container? - How to Use GitLab - GitLab Forum
October 8, 2021 - Hello, I just installed gitlab on my Synology in Docker with the image gitlab/gitlab-ce:latest. The installation went fine and I can bring up the page. It is asking me for a userame/password to log in. All the guides …
🌐
GitLab
forum.gitlab.com › how to use gitlab
How to login for the first time, local install with docker image - How to Use GitLab - GitLab Forum
July 5, 2021 - I installed docker image and started it. Then I opened “external_url” in the browser and saw the login screen and I have no idea how to log in. I was reading the docs, reproducing the steps, but suddenly - there’s a bi…
Discussions

Default username/password not working.
I just pulled the sameersbn/gitlab:7.3.2-1 container and launched it with an external myself and red is server. It took a few minutes but it started correctly and I can reach the web interface. How... More on github.com
🌐 github.com
7
October 20, 2014
Can't sign in on new install
Another approach: For up to 24h after the initial install, you can find a temporary password for the root user in /etc/gitlab/initial_root_password . Use that to log in the web UI and reset the password. ETA the most convenient way to grab this password: sudo docker exec -it grep ‘Password:’ /etc/gitlab/initial_root_password (sauce: https://forum.gitlab.com/t/default-root-password/59677/5 ) More on reddit.com
🌐 r/gitlab
6
2
November 16, 2022
Cannot log into new GitLab installation
I have recently installed an instance of GitLab CE using Docker. The application sits behind an Nginx proxy and I can access the login page without problems. Unfortunately, I also cannot log into GitLab. Apparently, some of the startup documentation for GitLab is out of date. More on forum.gitlab.com
🌐 forum.gitlab.com
4
0
June 17, 2023
gitlab initial root password - Stack Overflow
Note: The password file will be automatically deleted in the first reconfigure run after 24 hours. ... Note: Remember to change -it gitlab to -it {name of your container}. With Docker swarm mode, you can easily configure and deploy your Docker-based GitLab installation in a swarm cluster. More on stackoverflow.com
🌐 stackoverflow.com
🌐
GitHub
github.com › sameersbn › docker-gitlab › issues › 181
Default username/password not working. · Issue #181 · sameersbn/docker-gitlab
October 20, 2014 - I just pulled the sameersbn/gitlab:7.3.2-1 container and launched it with an external myself and red is server. It took a few minutes but it started correctly and I can reach the web interface. However the default login (as given in readme.md here) is not working.
Author   quasarj
🌐
GitLab
gitlab.com › gitlab.org › #363127
Document how to login initially as admin user after installation (#363127) · Issues · GitLab.org / GitLab · GitLab
May 22, 2022 - In a [completely different section of the documentation](https://docs.gitlab.com/ee/security/reset_user_password.html#reset-the-root-password) I finally found "How to reset the root password" using this command: `gitlab-rake "gitlab:password:reset[root]"`. But as I am using Docker (which isn't even mentioned there), I had to invest another 10min digging through Docker documentation to find this command ```docker exec -it `docker-compose ps -q` gitlab-rake "gitlab:password:reset[root]"```, which still did not work.
🌐
DEV Community
dev.to › henriqueholtz › how-to-reset-root-password-on-gitlab-ce-self-managed-using-gitlab-rake-3go7
How to reset root password on gitlab-ce (self-managed) using gitlab-rake - DEV Community
August 30, 2022 - 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 ...
Find elsewhere
🌐
Medium
suleman-hasib.medium.com › gitlab-automation-initial-root-password-token-generation-c8ec9e07d520
GitLab Automation: Initial Root Password & Token Generation | by Suleman Hasib | Medium
May 31, 2021 - The challenge for me was to automate the initial root password and generate a token for that user so it can be used later on in uploading DataOps repos/pipelines to GitLab Instance. ... Docker Client: Version: 20.10.4 API version: 1.41 Go version: go1.15.8 Git commit: d3cb89e Built: Mon Mar 29 18:54:36 2021 OS/Arch: linux/amd64 Context: default Experimental: true
🌐
Medium
medium.com › @BuildWithLal › dockerized-gitlab-how-to-easily-set-up-your-own-gitlab-server-9a925be09c59
Dockerized GitLab: How to Easily Set Up Your Own GitLab Server | by Lal Zada | Medium
October 10, 2024 - When you retry after a minute, ... root which is set by default. To get the password you need to run a simple docker command inside the running GitLab container....
🌐
Computer How To
arstech.net › home › how to change the root password in a gitlab on docker
How to Change the Root Password in a GitLab on Docker - Computer How To
May 12, 2024 - This comprehensive guide will walk you through the process of changing the root password in a new GitLab installation on Docker using the gitlab-rake "gitlab:password:reset" command. When you first install GitLab on Docker, it typically assigns a default root password or requires you to set one at the beginning.
🌐
GitLab
gitlab.com › gitlab.org › gitlab foss › #35753
cannot set first password on gitlab-ce docker image (#35753) · Issues · GitLab.org / GitLab FOSS · GitLab
I cannot fill the password for the first user on my gitlab-ce docker image, I always have this message: "7 errors prohibited this user from being saved:
🌐
Medium
itsmegaffoor.medium.com › gitlab-installation-on-windows-using-docker-7c96186a938a
GitLab Installation on Windows using Docker | by Abdul Gaffoor. Noor Basha | Medium
September 4, 2023 - docker run --detach --hostname ...ar/opt/gitlab --shm-size 256m gitlab/gitlab-ee:latest ... The default password will be in the container, SSH into the docker container docker exec it gitlab /bin/bashand run cat /etc/gitlab/...
🌐
Documentation
docs.bytemark.co.uk › home › articles › how to setup a gitlab server using docker
How to setup a GitLab server using Docker - Documentation | Bytemark
November 7, 2018 - DOMAIN="`hostname -f`" sed -i -e "s|^GITLAB_DOMAIN=.*|GITLAB_DOMAIN=$DOMAIN|" /root/compose/.env # Change SSH port to 2222, so that GitLab can use port 22. sed -i -e "s|^#Port 22|Port 2222|" /etc/ssh/sshd_config systemctl restart sshd.service # Start our containers. cd /root/compose docker-compose up -d · The Panel will tell you the root password for your server.
🌐
Damagehead
damagehead.com › docker-gitlab
Docker GitLab by sameersbn
docker run --name gitlab -d \ --link gitlab-postgresql:postgresql --link gitlab-redis:redisio \ --publish 10022:22 --publish 10080:80 \ --env 'GITLAB_PORT=10080' --env 'GITLAB_SSH_PORT=10022' \ --env 'GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alpha-numeric-string' \ --volume /srv/docker/gitlab/gitlab:/home/git/data \ sameersbn/gitlab:8.4.2 · NOTE: Please allow a couple of minutes for the GitLab application to start. Point your browser to http://localhost:10080 and login using the default username and password:
🌐
Docker Hub
hub.docker.com › r › ulm0 › gitlab
ulm0/gitlab - Docker Image
After you change it, you can login with username root and the password you set up. ... docker run -d \ --hostname gitlab.example.com \ -p 443:443 -p 80:80 -p 22:22 \ --name gitlab \ --restart always \ -v /srv/gitlab/config:/etc/gitlab \ -v /srv/gitlab/logs:/var/log/gitlab \ -v /srv/gitlab/data:/var/opt/gitlab \ ulm0/gitlab Copy
🌐
GitHub
github.com › sameersbn › docker-gitlab › issues › 929
Reset Root Password · Issue #929 · sameersbn/docker-gitlab
October 15, 2016 - I also found #904 suggesting setting up GITLAB_ROOT_PASSWORD and running bin/rake gitlab:setup but get the same error...
Author   msmarino