Skip to content

Commit f2ed9e0

Browse files
authored
Fix no match for platform in manifest when containerd is enabled using Docker Desktop (#9200)
1 parent 0217e78 commit f2ed9e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/java/org/testcontainers/images/RemoteDockerImage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.github.dockerjava.api.command.PullImageCmd;
55
import com.github.dockerjava.api.exception.DockerClientException;
66
import com.github.dockerjava.api.exception.InternalServerErrorException;
7+
import com.github.dockerjava.api.exception.NotFoundException;
78
import com.google.common.util.concurrent.Futures;
89
import lombok.AccessLevel;
910
import lombok.AllArgsConstructor;
@@ -155,7 +156,7 @@ private TimeLimitedLoggedPullImageResultCallback pullImage(PullImageCmd pullImag
155156
throws InterruptedException {
156157
try {
157158
return pullImageCmd.exec(new TimeLimitedLoggedPullImageResultCallback(logger)).awaitCompletion();
158-
} catch (DockerClientException e) {
159+
} catch (DockerClientException | NotFoundException e) {
159160
// Try to fallback to x86
160161
return pullImageCmd
161162
.withPlatform("linux/amd64")

0 commit comments

Comments
 (0)