Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install GitLab in Docker

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces you how to install GitLab in Docker, the content is very detailed, interested friends can refer to, hope to be helpful to you.

Docker pull gitlab/gitlab-cemkdir / root/data/gitlab/config / root/data/gitlab/logs / root/data/gitlab/data-pdocker run-d-name gitlab--restart always-p 8443 docker pull gitlab/gitlab-cemkdir-p 80:80-p 8822 purl 22-v / root/data/gitlab/config:/etc/gitlab-v / root/data/gitlab/logs:/var/log/gitlab-v / root/data/gitlab/data:/var/opt/gitlab gitlab/gitlab-cedocker exec-it gitlab bashvi / root / data/gitlab/config/gitlab.rb# configure the access address used by the http protocol Without the port number, the default is 80external_url 'http://127.0.0.1'# access address and port used to configure the ssh protocol gitlab_rails [' gitlab_ssh_host'] = '127.0.0.1'gitlab_rails [' gitlab_shell_ssh_port'] = 8822 # this port is the 8822 port mapped by port 22 when run

Set up ssh

Local git bash$ ssh-keygen-t rsa-C 'xxx@xxx.com' # and then enter all the way (- C parameter is your email address) # ~ indicates the user directory, for example, my windows is C:\ Users\ Administrator And copy the contents of $cat ~ / .ssh/id_rsa.pub, open gitlab, find Profile Settings-- > SSH Keys--- > Add SSH Key, and paste the contents copied in the previous step into the corresponding text box of Key on how to install GitLab in Docker and share it here. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report