$ docker pull gitlab/gitlab-ce:latest
docker run -p 4403:443 -p 12380:80 -p 222:22 --name=gitlab --restart=always -v $GITLAB_HOME/config:/etc/gitlab -v $GITLAB_HOME/logs:/var/log/gitlab -v $GITLAB_HOME/data:/var/opt/gitlab -d gitlab/gitlab-ce
72549aec426c gitlab/gitlab-ce "/assets/wrapper" 4 minutes ago Up 4 minutes (health: starting) 0.0.0.0:222->22/tcp, 0.0.0.0:12380->80/tcp, 0.0.0.0:4403->443/tcp gitlab
status = (health: starting):表示正在启动中, 可以通过: docker logs -ft --tail 10 72549aec426c
查看容器运行的日志
当 status = (healthy): 表示启动成功
$ netstat -tunlp | grep 12380
tcp 0 0 0.0.0.0:12380 0.0.0.0:* LISTEN 8702/docker-proxy
在window上进行
$ telnet 192.168.220.110 12380
能通则说明gitlab启动正常