From 059302ea843707b2bdc7d82278e088d3eaa0e4be Mon Sep 17 00:00:00 2001 From: Pierre Ozoux Date: Tue, 23 Aug 2016 15:09:38 +0100 Subject: [PATCH] better rake command with --user instead Use the `--user` argument instead of `sudo` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8cc93b8a..5cc18262 100644 --- a/README.md +++ b/README.md @@ -1057,7 +1057,7 @@ docker run --name gitlab -it --rm [OPTIONS] \ You can also use `docker exec` to run raketasks on running gitlab instance. For example, ```bash -docker exec -it gitlab sudo -HEu git bundle exec rake gitlab:env:info RAILS_ENV=production +docker exec --user git -it gitlab bundle exec rake gitlab:env:info RAILS_ENV=production ``` Similarly, to import bare repositories into GitLab project instance