我正在嘗試使用 Podman 在 IntelliJ 中構建 Spring Boot 專案的映像。Jetbrain 的指南建議在 Build,Execution,Deployment > Docker 中“選擇 TCP 套接字并在 Engine 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 截圖
uj5u.com熱心網友回復:
由于 podman 版本升級,面臨同樣的問題。
似乎需要版本降級才能恢復容器,但還沒有嘗試過。
這個問題指向洗掉機器并再次創建它,但容器會丟失
https://github.com/containers/podman/issues/13510
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/447287.html
