docker install gilab

docker install gilab

https://www.cnblogs.com/zuxing/articles/9329152.html

1 
docker pull beginor/gitlab-ce:11.0.1-ce.0
2 
 pull pull 
 docker 
 
1  GitLab   (etc)     (log)   (data)      
mkdir -p/mnt/gitlab/etc
mkdir -p/mnt/gitlab/log
mkdir -p/mnt/gitlab/data
2    Docker    unless-stopped  
   

 

docker run/
    --detach/
    --publish 8443:443/
    --publish 8090:80/
    --name gitlab/
    --restart unless-stopped/
    -v/mnt/gitlab/etc:/etc/gitlab/
    -v/mnt/gitlab/log:/var/log/gitlab/
    -v/mnt/gitlab/data:/var/opt/gitlab/
    beginor/gitlab-ce:11.0.1-ce.0
  GitLab 
1/mnt/gitlab/etc/gitlab.rb

  external_url IP 

vim/mnt/gitlab/etc/gitlab.rb
 2/mnt/gitlab/data/gitlab-rails/etc/gitlab.yml
vim/mnt/gitlab/data/gitlab-rails/etc/gitlab.yml
  * ## Web server settings * 
 host ip gitlab 
 gitlab web 
 
 
 80 
external_url 'http://192.168.182.129 8090'  8090
 NGINX 9999
nginx['listen_addresses'] = ['*']
nginx['listen_port'] = 8090
 8080 Tomcat 502 

 unicorn 
### Advanced settings
# unicorn['listen'] = '127.0.0.1'
# unicorn['port'] = 8080
 
#  Tomcat 8080 8082 
 unicorn['listen'] = '127.0.0.1'
 unicorn['port'] = 8082

 Gitlab 
 Gitlab/var/opt/gitlab/git-data/data/gitlabData

vim/mnt/gitlab/etc/gitlab.rb
### For setting up different data storing directory
###! Docs: https://docs.gitlab.com/omnibus/settings/configuration.html#storing-git-data-in-an-alternative-directory
###! **If you want to use a single non-default directory to store git data use a
###!   path that doesn't contain symlinks.**
# git_data_dirs({ "default" => { "path" => "/var/opt/gitlab/git-data", 'gitaly_address' => 'unix:/var/opt/gitlab/gitaly/gitaly.socket' } })

#edited by ouyangpeng 2017-8-10   gitlab/data 
git_data_dirs({ "default" => { "path" => "/data/gitlabData" } })
 resposities
 GitLab
 GitLab ip , GitLab GitLab, GitLab 

 gitlab 

docker exec -ti gitlab/bin/bash
 
gitlab-ctl reconfigure  # 
gitlab-ctl restart    # IP 
gitlab-ctl status
 
 ip 

http://192.168.182.129:8090
   root , 

 Gitlab 

#  gitlab 
gitlab-ctl reconfigure
 
#  gitlab 
gitlab-ctl restart
 
#  gitlab 
gitlab-ctl status
 
# gitlab 
gitlab-ctl stop
 
#  gitlab 
gitlab-ctl tail
 
#  
gitlab-ctl stop unicorn
gitlab-ctl stop sideki
 

  
1 docker 


Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen<strong> :</strong>
 

 docker 
 docker 

systemctl restart docker
docker start gitlab