美文网首页
Docker 安装GitLab

Docker 安装GitLab

作者: Mr_LiTong | 来源:发表于2018-09-18 16:51 被阅读18次

命令

sudo docker run --detach \
    --hostname 149.28.85.126 \
    --publish 443:443 --publish 82:80 --publish 8888: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

参考链接

https://docs.gitlab.com/omnibus/docker/
https://juejin.im/post/5a4c9ff36fb9a04507700fcc

问题记录

内存要大(1G以上),要不然会安装失败,不适合安装到服务器。可以本地做好然后内网穿透。

相关文章

网友评论

      本文标题:Docker 安装GitLab

      本文链接:https://www.haomeiwen.com/subject/fwwpnftx.html