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

Illegal instruction (core dumped) #1231

Open
adlion opened this issue Mar 18, 2020 · 4 comments
Open

Illegal instruction (core dumped) #1231

adlion opened this issue Mar 18, 2020 · 4 comments

Comments

@adlion
Copy link

adlion commented Mar 18, 2020

Building image using node:13.10.1-alpine3.11
In one laptop is working but in my second laptop is throwing

Illegal instruction (core dumped) sill install generateActionsToTake

Building using node:13.10.1-alpine3.10 throw error

Illegal instruction (core dumped)e: verb extractTree extracting dependencies to node_modules/

Tried the same version of node using latest and everyhting went fine.
Also I tried "node:12.16.1-alpine3.9" and everything installed properly.
Attached are the package.json and the termianl screenshot.
Looking in internet and could not find something
THere are some suggestions that the node modules should not be imported and I confirm that are not imported.
Every action is done while in folder is only package.json and package-lock.json.
All commands are run as user "node"
nodeTerminal
package_json

@bdjilka
Copy link

bdjilka commented Apr 21, 2020

Same problem with node:13.12.0-stretch-slim
Step 4/11 : RUN npm install
Illegal instruction (core dumped)
ERROR: Service 'frontend_builder' failed to build: The command '/bin/sh -c npm install' returned a non-zero code: 132

@salykin
Copy link

salykin commented Apr 21, 2020

Hi,

Some suggestions:

@salykin
Copy link

salykin commented Apr 21, 2020

Clean build with node:13.12.0-stretch-slim works fine on my package.json.
Docker version 19.03.8, build afacb8b7f0

$ ulimit -all
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 15736
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 15736
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

@adlion
Copy link
Author

adlion commented Apr 22, 2020

@salykin I will try to build the container one more time using npm install -ddd
I am sure I have not copied the node_modules, because I copy the source code and than I enter in container and if I make there npm install I get the same error
I have run docker system prune and made sure that everything has gone , including any network or volume.
I will try and let you know if the solution for the stack size will fix.
Again I am facing this error only when building with a specific alpine version.
Look my first comment. Only a specific version of Alpine throw this error.

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

4 participants
@salykin @bdjilka @adlion and others