0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Docker Desktop 4.54.0でTestContainersのテストが落ちるときの対処法

Posted at

問題

前回の記事の続編です。
Docker Desktopを4.54.0にアップグレード後、以下のエラーが出る

java.lang.IllegalStateException: Could not find a valid Docker environment.

詳細ログには:

client version 1.32 is too old. Minimum supported API version is 1.44

原因

Docker Engine v29で最小APIバージョンが1.44に引き上げられた。
TestContainers(1.x系)が使用するdocker-javaはAPI 1.32のため、接続を拒否される。

解決策(どちらか1つ)

方法1: TestContainersを2.0.2にアップグレード

// build.gradle.kts
testImplementation("org.testcontainers:testcontainers:2.0.2")

方法2: Spring Bootを3.5.8にアップグレード(多分4.0.0でもいいはず)

// build.gradle.kts
plugins {
    id("org.springframework.boot") version "3.5.8"
}

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?