Skip to content

Image doesn't support ARM64 architecture #8

Description

@abhinav7sinha

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions