标签:run logs global tor hub external restart 开源 数据卷
#yum -y install docker
#systemctl restart docker
docker pull gitlab/gitlab-ce
docker images
docker run -d -h gitlab -p 443:443-p 80:80 -p 2222:22--name gitlab --restart always -v /root/data/gitlab/config:/etc/gitlab -v /root/data/gitlab/logs:/var/log/gitlab \
-v /root/data/gitlab/data:/var/opt/gitlab docker.io/gitlab/gitlab-ce
docker exec -it gitlab vi /etc/gitlab/gitlab.rb
13 external_url ‘http://115.159.84.173‘
docker restart gitlab
# git config --global user.name "shiyong"
# git config --global user.email "shiyong@qq.com"
# git clone http://192.168.200.128/shiyong/abc.git
[root@localhost abc]# ls abc/
cd abc
# touch README.md
vi README.md
README.md
git commit -m "add README"
git clone http://192.168.200.128/shiyong/abc.git
标签:run logs global tor hub external restart 开源 数据卷
原文地址:https://www.cnblogs.com/adolfmc/p/9384852.html