docker run \
--detach \
--publish 20443:443 \
--publish 20080:80 \
--name gitlab \
--restart unless-stopped \
--volume ~/gitlabdata/etc:/etc/gitlab \
--volume ~/gitlabdata/log:/var/log/gitlab \
--volume ~/gitlabdata/data:/var/opt/gitlab \
beginor/gitlab-ce
参见连接:https://hub.docker.com/r/beginor/gitlab-ce/
sudo docker run --detach --hostname 192.168.5.85 --publish 20443:443 --publish 20080:80 --publish 20022:22 --name gitlab --restart always --volume /srv/gitlab/config:/etc/gitlab --volume /srv/gitlab/logs:/var/log/gitlab --volume /srv/gitlab/data:/var/opt/gitlab gitlab/gitlab-ce:latest