From 1716671d6b26e2a0b3ee4dec46a4839d97b2213f Mon Sep 17 00:00:00 2001 From: Jacek Wielemborek Date: Thu, 5 Nov 2015 14:53:28 +0100 Subject: [PATCH] Add a note about SELinux, use --name instead of -name. --- readme.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 862ae05..257a483 100644 --- a/readme.md +++ b/readme.md @@ -46,14 +46,16 @@ To create the container instance, run the following: Next, run this if you pulled the image from the Docker index: - docker run -d -v /path/to/gitlab-docker:/srv/gitlab -name gitlab crashsystems/gitlab-docker + docker run -d -v /path/to/gitlab-docker:/srv/gitlab --name gitlab crashsystems/gitlab-docker Or this if you built it yourself: - docker run -d -v /path/to/gitlab-docker:/srv/gitlab -name gitlab gitlab + docker run -d -v /path/to/gitlab-docker:/srv/gitlab --name gitlab gitlab */path/to/gitlab-docker* represents the folder created by the git clone on the Docker host, and will contain the GitLab instance's data. Make sure to move it to your desired location before running the container. Also, the first boot of the container will take a bit longer, as the firstrun.sh script will be invoked to perform various initialization tasks. +If you're getting "permission denied" error, run `chcon -Rt svirt_sandbox_file_t /path/to/gitlab-docker` to fix SELinux permissions. + ##### Default username and password GitLab creates an admin account during setup. You can use it to log in: