-
Notifications
You must be signed in to change notification settings - Fork 122
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
Docker build fails when targeting --platform linux/amd64
, due to allocate virtual memory
issue
#5831
Comments
I'm having the same issue. I have tried to increase available memory for Node through this command in my docker file. RUN set NODE_OPTIONS=--max-old-space-size=30720 However, the issue is still present. |
This seems to be exclusive to node.js 16.x. Still affecting Docker Desktop 3.5.2 on Apple Silicon. Any I reproduced on |
Hello guys, I'd like to share my experience with this issue. With DockerFile "FROM node:16-slim" base, I have the "allocate virtual memory" issue. Thanks to @shamelesscookie for the observation. I'll set my DockerFiles with node 14 for the moment... (For all : Is any solution for speedup build --platform linux/amd64 option, please ???) Thanks for all. |
Thank you @shamelesscookie for the observation. I changed my base image from |
@Nomad-Go @shamelesscookie I'm trying to follow your hint. 🤞 for us! EDIT: It's working for us |
Downgrading base image to Node 14 worked for me too. Thanks @Nomad-Go! |
@Nomad-Go it`s works |
Using |
By trial-and-error I found that using |
Thank you @Lazzu! Seconding your find. Something broke starting with Node 16.4. |
This downgrades Tecken to using node 14. Tecken only uses node to build static assets, so as long as they're building fine, it doesn't really matter what version of node we're using. This allows people using macs with m1 processors to build and run Tecken. Previous to this fix, they would hit this issue: docker/for-mac#5831
This appears to be fixed with node 16.10.0
|
downgrade to node:15-alpine because of issue docker/for-mac#5831 for building on Apple M1
Confirming @shamelesscookie 's finding that building w/ latest version of Node (starting w/ 16.10) fixes this. Versions 16.4-16.9 have the OOM qemu issue. |
@shamelesscookie finding works for me with Docker Desktop v4.1.0 (69386). It doesn't work with Docker Desktop v4.0.1
|
Im facing the same problem. And changing the base image did not work for me. |
I can confirm that after upgrading docker desktop to the latest version I was able to build the image on a Mac M1 |
Looks like this was resolved; let me go ahead and close, but feel free to comment if you're still running into this on the latest version of Docker Desktop |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
Build should succeed, as it did in previous Docker Apple Silicon Preview versions.
Actual behavior
Build fails once it tries to execute a command, resulting in
allocate virtual memory
issue /core dumped
, then just hangs.Information
11.4
Apple M1
3.5.1.7
Steps to reproduce the behavior
Dockerfile
Build command (ran via
deploy.sh
):The text was updated successfully, but these errors were encountered: