Move To Docker
来自Ubuntu中文
gitlib
运行 gitlib 私有仓库
sudo docker run --detach \ -e TZ=Asia/Shanghai \ --hostname kfb \ --publish 80:80 \ --name gitlab \ --restart always \ --volume /var/lib/gitlab/config:/etc/gitlab \ --volume /var/lib/gitlab/logs:/var/log/gitlab \ --volume /var/lib/gitlab/data:/var/opt/gitlab \ gitlab/gitlab-ce:latest
备份
sudo docker exec -t gitlab gitlab-rake gitlab:backup:create
还原
sudo docker exec -it gitlab gitlab-rake gitlab:backup:restore BACKUP=1555553246_2019_04_18_11.9.8