From e19ff2bf3228a086c7b1d2000d9304d162f295b9 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Fri, 7 Mar 2014 09:13:28 +0530 Subject: [PATCH] README: updated command to get the root password --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1aced257..b87a8a37 100644 --- a/README.md +++ b/README.md @@ -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.