-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
The docker image - dimuthuupe/ipykernel:1.2 doesn't support ARM64 architecture. This causes the jupyter API to fail while running the image.
Here's the error message:
The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested,
Here's a workaround:
Add a platform tag while creating the containerResponse object here jupyter-platform/platform-api/src/main/java/org/apache/airavata/jupyter/core/OrchestrationEngine.java:
CreateContainerResponse containerResponse = dockerClient.createContainerCmd(baseImage)
.withPlatform("linux/amd64")
.withName(containerId)
.withTty(true)
.withAttachStdin(true)
.withHostConfig(hostConfig)
.withAttachStdout(true).withEnv(environmentValues.entrySet()
.stream()
.map(entry -> entry.getKey() + "=" + entry.getValue())
.collect(Collectors.toList()))
.exec();Instead of hardcoding this everytime - we need to find another way to do this dynamically
Metadata
Metadata
Assignees
Labels
No labels