System: centos7, 6 gb of memory (gitlab had memory proposed more than 4 gb of memory) system download links: pan.baidu.com/s/1rZ5CBNBW… Extract the code: /etc/sysconfig/network-scripts/ifcfg-enp0s3 Command vi ifcfg-enp0s3 ONBOOT=”yes” BOOTPROTO=”static” NETMASK=”255.255.255.0″ # NETMASK=” 192.168.0.1″ # host GATEWAY=” 114.114.114″ DNS2=”8.8.8.8″ command :service network restart update yum command :yum update create mount directory mkdir -p /home/gitlab/logs mkdir -p /home/gitlab/data mkdir -p /home/gitlab/etc docker pull beginor/gitlab-ce:11.0.1-ce.0 Run the image docker run -d -p 48080:80 – p – 8443-443 p, 8022:22 – name gitlab – the hostname 192.168.0.18 – restart always – v/home/gitlab/etc / : / etc/gitlab -v /home/gitlab/logs:/var/log/gitlab -v /home/gitlab/data:/var/opt/gitlab -v /etc/localtime:/etc/localtime:ro — Privileged =true BEGINOR/Gitlab-ce: 11.0.1-CE. 0 Wait until the container is opened, and then access 192.168.0.18:48080