Docker完全卸下容器和图像

发布于 2025-02-10 07:54:30 字数 428 浏览 0 评论 0原文

重新安装Gitlab Docker问题

,所以今天我偶然地弄乱了docker-compose而不是停止,并且由于我的Dockerfile具有“最新”标签,因此它试图更新它,并且现在失败了,我无法访问它。

从我的理解中,CE版本被停止并建议使用EE,所以我不介意重新安装,甚至失去数据,因为无论如何只有两个存储库,但是每当我尝试安装Gitlab-EE时:最新我会收到此错误 “看来您正在从主要版本12升级到主要版本15 ....”

我做了docker卷Prunedocker 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

天冷不及心凉 2025-02-17 07:54:30

从我的理解中,CE版本正在停止,建议使用EE

我不知道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。

From my understanding ce version is being discontinued and ee is recommended

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 of gitlab/gitlab-ce:latest means that a docker-compose would not accidentally upgrade your GitLab.

刘备忘录 2025-02-17 07:54:30

好的,所以它可能是特定于拉拉多克的,但是如果有人遇到类似的东西,我做到了:

请记住,这将删除所有非运行的图像和卷​​,因此请确保要离开的容器正在运行

docker volume prune

docker system prune

,然后(就我而言)/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

docker volume prune

docker system prune

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文