docker run --detach \
  --hostname 192.168.7.50 \
  --publish 8443:443 --publish 80:80 --publish 8222:22 \
  --name gitlab \
  --restart always \
  --volume /hytd/gitlab/config:/etc/gitlab \
  --volume /hytd/gitlab/logs:/var/log/gitlab \
  --volume /hytd/gitlab/data:/var/opt/gitlab \
  --privileged=true \
  gitlab/gitlab-ce:latest

编辑 /hytd/gitlab/config/gitlab.rb 添加配置

external_url 'http://192.168.7.50'
gitlab_rails['gitlab_ssh_host'] = '192.168.7.50'

重启docker容器实例

sudo docker restart gitlab

相关文章:

  • 2021-10-31
  • 2020-10-10
  • 2021-10-04
猜你喜欢
  • 2021-06-26
  • 2020-02-02
  • 2022-12-23
  • 2021-04-29
  • 2021-12-02
相关资源
相似解决方案