In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "docker how to install gitlab", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "docker how to install gitlab" this article.
1. Pull gitlab image
Docker pull gitlab/gitlab-ce
two。 Gitlab is usually used with git configuration, while git uses ssh protocol to operate git repository, and we also use ssh when connecting to the host. If the default sshd port is not modified, there will be problems with git using the default configuration. Here, the sshd port of the host is changed from port 22 to port 15678.
# 1. Remove the # Port 22 comment from this file and change the number 22 to 15678vim / etc/ssh/sshd_config#2. Run this command so that port 15678 can provide services. Otherwise, it is impossible to make a remote ssh login to semanage port-a-t ssh_port_t-p tcp 15678. Restart the sshd service systemctl restart sshd
3. Container volume mapping will be configured later, so find a place to store the mapped data first.
# enter the data folder according to the new directory mkdir data#, create the gitlab directory, mkdir gitlab#, enter the gitlab directory, create the config directory, create the mkdir config# directory, create the data directory, create the logs directory, mkdir logs.
4. Run the container
Docker run-- publish 443 publish 80:80-- publish 22:22\-- name gitlab-- volume / data/gitlab/config:/etc/gitlab\-- volume / data/gitlab/logs:/var/log/gitlab\-- volume / data/gitlab/data:/var/opt/gitlab\-- privileged=true-d mirror ID--publish host port: container port forwards these ports directly to the container-- volume host destination Record: mapping of configuration data in container directory-- privileged does not have permission to solve data mapping
5. Access the host IP, enter the gitlab interface, set the password of the root account, at least 8 digits, and then use the password set by root+ to deng'lu.
The above is all the contents of the article "how to install gitlab in docker". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.