我有以下 docker 映像gitlab/gitlab-ce来创建本地 Gitlab 服务器,并且我有以下 docker-compose 文件:
git:
container_name: git-server
image: 'gitlab/gitlab-ce:latest'
hostname: 'gitlab.example.com'
ports:
- '8090:80'
volumes:
- '/srv/gitlab/config:/etc/gitlab'
- '/srv/gitlab/logs:/var/log/gitlab'
- '/srv/gitlab/data:/var/opt/gitlab'
networks:
- net
Run Code Online (Sandbox Code Playgroud)
当我docker-compose up在一分钟后这样做时,我收到此错误Upgrade failed. Retry the upgrade after migrating your data to hashed storage.并且容器退出。如何解决这个问题呢?
hashed storage解决方案是在创建 Gitlab 中的任何组或项目之前进行迁移Gitlab server container。
在 Gitlab 服务器中使用以下命令:
综合安装:
sudo gitlab-rake gitlab:storage:migrate_to_hashed
源码安装:
sudo -u git -H bundle exec rake gitlab:storage:migrate_to_hashed RAILS_ENV=production
现在您可以在文件夹下找到您的组和项目@hashed。
有关解释相对路径的信息,请参阅: https ://0xacab.org/help/administration/repository_storage_types.md#translate-hashed-storage-paths
| 归档时间: |
|
| 查看次数: |
2584 次 |
| 最近记录: |