docker destop
已启动的情况下。
在终端,启动代码:
sudo docker run --detach \
--hostname mygitlab.com \
--publish 30002:443 \
--publish 30000:80 \
--publish 30001:22 \
--name gitlab \
--restart always \
--volume /Users/juffive/my_config/gitlab/config:/etc/gitlab \
--volume /Users/juffive/my_config/gitlab/logs:/var/log/gitlab \
--volume /Users/juffive/my_config/gitlab/data:/var/opt/gitlab \
gitlab/gitlab-ce:latest
gitlab.rb增加配置:
# 将external_url修改为GitLab服务器的访问地址:
external_url 'http://localhost:30000'
gitlab_rails['gitlab_ssh_host'] = "localhost"
gitlab_rails['gitlab_shell_ssh_port'] = 30001
nginx['listen_port'] = 80
删除gitlab容器,再次启动
理论上应该访问http://localhost:30000/
,但:
求大神指导~
https://jarvanbest.com/2021/1... 使用
这个是gitlab的arm64镜像
docker pull yrzr/gitlab-ce-arm64v8
这个 m1的镜像。