Docker完全卸下容器和图像
重新安装Gitlab Docker问题
,所以今天我偶然地弄乱了docker-compose而不是停止,并且由于我的Dockerfile具有“最新”标签,因此它试图更新它,并且现在失败了,我无法访问它。
从我的理解中,CE版本被停止并建议使用EE,所以我不介意重新安装,甚至失去数据,因为无论如何只有两个存储库,但是每当我尝试安装Gitlab-EE时:最新我会收到此错误 “看来您正在从主要版本12升级到主要版本15 ....”
我做了docker卷Prune
和docker system prune -a,
,但我仍然得到相同的错误。我如何才能完全删除旧的CE Gitlab并安装最新的EE版本?
另外,我正在使用laradock,所以我只从gitlab-ce替换:最新
从gitlab-ee替换为:最新
Reinstalling gitlab docker issue
So today I messed up accidentally typed docker-compose down instead of stop and since my dockerfile has "latest" tag it tried to update it and it failed now I can't access it.
From my understanding ce version is being discontinued and ee is recommended so I don't mind reinstalling and even loosing my data since there were only two repos anyway but whenever I try to install gitlab-ee:latest I get this error
"It seems you are upgrading from major version 12 to major version 15...."
I did ran docker volume prune
and docker system prune -a,
but I still get same error. How can I completely delete old ce gitlab and install latest ee version?
Also I'm using laradock so I just replace FROM gitlab-ce:latest
to FROM gitlab-ee:latest
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不知道EE。
gitlab-ce
docker> docker image非常维护。
您可以重新安装
12.10.14-ce.0
,它仍然与您的旧版本兼容。通过使用gitlab/gitlab-ce的
:12.10.14-ce.0
而不是gitlab/gitlab-ce:最新
表示docker-compose < /代码>不会意外地升级您的gitlab。
Not that I know of.
gitlab-ce
Docker image is very much maintained.And you could reinstall the
12.10.14-ce.0
, which would still be compatible with your old version.By using a
FROM gitlab/gitlab-ce:12.10.14-ce.0
instead ofgitlab/gitlab-ce:latest
means that adocker-compose
would not accidentally upgrade your GitLab.好的,所以它可能是特定于拉拉多克的,但是如果有人遇到类似的东西,我做到了:
请记住,这将删除所有非运行的图像和卷,因此请确保要离开的容器正在运行
,然后(就我而言)/home/ [your_user ]/.laradock/data删除了与Gitlab相关的所有内容。
当我尝试拉动gitlab-ce时,它确实抱怨了,但再次采取了所有步骤,而Gitlab-EE则没有问题。
Ok so it might be laradock specific but if anyone encounters something similair I did this:
Keep in mind that this will delete all non running images and volumes so make sure that containers you want to leave is running
And then (in my case) /home/[your_user]/.laradock/data delete everything gitlab related.
It did actually complained when I tried to pull gitlab-ce but did all steps again and gitlab-ee installed without issues.