Docker 中“选择 TCP 套接字并在引擎 API-6ren">
gpt4 book ai didi

spring - Podman 服务器 API 版本太旧。客户端 "4.0.0"服务器 "3.4.4"

转载 作者:行者123 更新时间:2023-12-05 04:33:03 25 4
gpt4 key购买 nike

我正在尝试使用 Podman 在 IntelliJ 中构建 Spring Boot 项目的镜像。Jetbrain 的指南建议在构建、执行、部署> Docker 中“选择 TCP 套接字并在引擎 API URL 中指定 Podman API 服务 URL”(参见 https://www.jetbrains.com/help/idea/podman.html)。

但是,当提供在 Podman 的文档中找到的 TCP 套接字时(请参阅 https://docs.podman.io/en/latest/markdown/podman-system-service.1.html),IntelliJ 说它无法连接。

最后,当这里出现在终端中的错误时:

(base) abc ~ % podman ps
Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM
Error: unable to connect to Podman socket: server API version is too old. Client "4.0.0" server "3.4.4"

我找不到任何更新服务器版本的解决方案。欢迎任何建议!谢谢。

Intellij screenshot

最佳答案

由于podman版本升级面临同样的问题。

似乎需要降级版本才能恢复容器,但还没有尝试过。
这个问题指向删除机器并重新创建它,但是容器会丢失
https://github.com/containers/podman/issues/13510

关于spring - Podman 服务器 API 版本太旧。客户端 "4.0.0"服务器 "3.4.4",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71497349/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com