Skip to content

Add a note about SELinux, use --name instead of -name. #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down