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

[Bug] Dockerfile_aarch64_ascend cannot work for docker 18.09 #3140

Open
3 tasks done
bingps opened this issue Feb 13, 2025 · 0 comments
Open
3 tasks done

[Bug] Dockerfile_aarch64_ascend cannot work for docker 18.09 #3140

bingps opened this issue Feb 13, 2025 · 0 comments
Assignees

Comments

@bingps
Copy link

bingps commented Feb 13, 2025

Checklist

  • 1. I have searched related issues but cannot get the expected help.
  • 2. The bug has not been fixed in the latest version.
  • 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.

Describe the bug

The Dockerfile_aarch64_ascend cannot work for docker 18.09, which is the suggested version of the document, the error is like

DOCKER_BUILDKIT=1 docker build -t lmdeploy-aarch64-ascend:latest -f docker/Dockerfile_aarch64_ascend .      
[+] Building 0.0s (2/2) FINISHED
 => [internal] load build definition from Dockerfile_aarch64_ascend                                                                              0.0s
 => => transferring dockerfile: 112B                                                                                                             0.0s
 => [internal] load .dockerignore                                                                                                                0.0s
 => => transferring context: 2B                                                                                                                  0.0s
failed to create LLB definition: Dockerfile parse error line 39: Unknown flag: mount

According to this answer, it seems that older docker needs add # syntax=docker/dockerfile:experimental in Dockerfile. However, after adding this line the error is like

[+] Building 1.1s (4/4) FINISHED
 => [internal] load .dockerignore                                                                                                                0.0s
 => => transferring context: 2B                                                                                                                  0.0s
 => [internal] load build definition from Dockerfile_aarch64_ascend                                                                              0.0s
 => => transferring dockerfile: 112B                                                                                                             0.0s
 => resolve image config for docker.io/docker/dockerfile:experimental                                                                            0.0s
 => docker-image://docker.io/docker/dockerfile:experimental                                                                                      0.0s
 => => resolve docker.io/docker/dockerfile:experimental                                                                                          0.0s
exit code: 1

My current solution is to upgrade docker to newer versions, which is not that easy on Atlas servers due to incompatibility bewteen OpenEuler and docker😢 Is there better solutions like modifying the Dockerfile?

Reproduction

DOCKER_BUILDKIT=1 docker build -t lmdeploy-aarch64-ascend:latest -f docker/Dockerfile_aarch64_ascend .

Environment

N/A

Error traceback

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

2 participants