mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
README: updated command to get the root password
This commit is contained in:
parent
c360767a7f
commit
e19ff2bf32
@ -300,7 +300,7 @@ There are two methods to gain root login to the container, the first method is t
|
||||
The second method is use the dynamically generated password. Every time the container is started a random password is generated using the pwgen tool and assigned to the root user. This password can be fetched from the docker logs.
|
||||
|
||||
```bash
|
||||
docker logs gitlab 2>&1 | head -n1
|
||||
docker logs gitlab 2>&1 | grep '^User: ' | tail -n1
|
||||
```
|
||||
This password is not persistent and changes every time the image is executed.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user