Install Gitlab using Docker

1. Install Docker

https://download.docker.com/m…

2. Set the accelerator after installation:





{

“builder”: {

"gc": {
  "defaultKeepStorage": "20GB",
  "enabled": true
}

},

“experimental”: false,

“features”: {

"buildkit": true

},

“registry-mirrors”: [

"https://pt3p0cvc.mirror.aliyuncs.com"

]}

Docker pull gitlab/gitlab-ee: 10.8.4-EE.0

--hostname localhost \ --publish 443:443 --publish 80:80 --publish 22:22 \ --name gitlab \ --restart always \ --volume /Users/yufu/gitlab/config:/etc/gitlab \ --volume /Users/yufu/gitlab/logs:/var/log/gitlab \ --volume / Users/yufu gitlab/data: / var/opt/gitlab \ gitlab/gitlab - ee: 10.8.4 - ee. 0

Note: The container directory needs to be mapped to the local directory. “:” is preceded by the local directory. :” after docker mapping directory, the system will automatically create or create by itself, and bind the directory to the Docker container to realize resource file sharing.



5. After the installation is successful, enter localhost as the domain name for access.