Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image doesn't support ARM64 architecture #8

Open
abhinav7sinha opened this issue Sep 23, 2022 · 0 comments
Open

Image doesn't support ARM64 architecture #8

abhinav7sinha opened this issue Sep 23, 2022 · 0 comments

Comments

@abhinav7sinha
Copy link

abhinav7sinha commented Sep 23, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant