[Linux] docker install and use gitlab-ce

gitlab equivalent to our own network build git service, equivalent to github within the company.

Pulling mirror
docker pull gitlab / gitlab-ce

Create a host data directory
mkdir -p / mnt / gitlab / etc
mkdir -p / mnt / gitlab / log
mkdir -p / mnt / gitlab / the Data

Port mirroring is performed and the host computer with the directory mapping into the container
Docker RUN \
--detach \
--publish 8443: 443 \
--publish 8090: 80 \
--name gitlab \
--restart-The unless stopped \
-v / mnt / gitlab / etc: / etc / gitlab \
-v / mnt / gitlab / log: / var / log / gitlab \
-v / mnt / gitlab / Data: / var / opt / gitlab \
gitlab / CE-gitlab

Edit the configuration file, the access url filling into
/mnt/gitlab/etc/gitlab.rb
external_url 'http://192.168.1.114'

Ip test directly log on to view know their ip
ifconfig
192.168.1.114
edit the configuration file, which is used to display the git external address
/mnt/gitlab/data/gitlab-rails/etc/gitlab.yml
Host: 192.168. 1.114
Port: 8090
HTTPS: to false
into the container, re-set the profile
Docker Exec Expediting IT gitlab / bin / the bash
gitlab the reconfigure-CTL
gitlab the restart-CTL
gitlab-CTL Status

Access gitlab, sometimes reported 502, if not a port conflict would wait a few minutes longer have access to good, direct modification will reset your password, log in using root
http://192.168.1.114:8090

Create a test project

Guess you like

Origin www.cnblogs.com/taoshihan/p/11749891.html