参考:https://docs.gitlab.com/omnibus/docker/

image tags: https://hub.docker.com/r/gitlab/gitlab-ce/tags

docker run -d \
--hostname 47.105.116.80 \
-p 443:443 \
-p 80:80 \
-p 30022:22 \
--name gitlab \
--restart always \
-v /srv/gitlab/config:/etc/gitlab \
-v /srv/gitlab/logs:/var/log/gitlab \
-v /srv/gitlab/data:/var/opt/gitlab \
gitlab/gitlab-ce:11.10.0-ce.0
sudo docker run --detach \
  --hostname gitlab.example.com \
  --publish 443:443 --publish 80:80 --publish 22: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
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐