-
-
Save rodtreweek/705e74f883e1170555221a7537eb582a to your computer and use it in GitHub Desktop.
Using Docker toolbox to create a persistent Gitlab-CE install in Windows 10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker create --name gitlab-data --volume /d/docker/gitlab:/etc/gitlab gitlab/gitlab-ce:latest | |
# Make sure Bridging is set on the VM in VirtualBox | |
$ docker run --publish 8080:80 --publish 2222:22 --publish 4443:443 --name gitlab --restart always --volumes-from gitlab-data gitlab/gitlab-ce:latest | |
Using docker 1.13.1 | |
/******************************************************************************************************************/ | |
Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file | |
And restart this container to reload settings. | |
To do it use docker exec: | |
docker exec -it gitlab vim /etc/gitlab/gitlab.rb | |
docker restart gitlab | |
For a comprehensive list of configuration options please see the Omnibus GitLab readme | |
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md | |
If this container fails to start due to permission problems try to fix it by executing: | |
docker exec -it gitlab update-permissions | |
docker restart gitlab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment