docker-node icon indicating copy to clipboard operation
docker-node copied to clipboard

Base node 12 alpine3.12 build an image run error: starting container process caused "exec: \"docker-entrypoint.sh\": executable file not found in $PATH": unknown.

Open hantmac opened this issue 3 years ago • 2 comments

Environment

  • Platform: Mac
  • Docker Version: 19.03.4
  • Node.js Version: 12.20.0.alpine.3.12
  • Image Tag:alpine3.12

Expected Behavior

I use the Dockerfile in https://github.com/hantmac/docker-node/tree/master/12/alpine3.12 to build image and run success.

Current Behavior

When I run the image that built got the error docker: Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "exec: \"docker-entrypoint.sh\": executable file not found in $PATH": unknown.

Possible Solution

Can not find docker-entrypoint.sh

hantmac avatar Dec 02 '20 05:12 hantmac

Does anyone have a resolution for this? Nearly 3 years later and I'm encountering the same error. Wondering if it's something specific to my environment. For context, my company was acquired and when I use the Dockerfile from the new company I ran into this error (using 18.14.0-alpine). They've used it without any problems but JenkinsCD is failing in my build. Removing the ENTRYPOINT bypasses the error. I ran into another issue further along and thought I'd upgrade the Dockerfile to use node 20 to troubleshoot it, restored the ENTRYPOINT and ran into the $PATH error again when trying to run the image. This is all cut-and-paste so I'm not sure where the problem lies. My machine could be the problem but that wouldn't explain why Jenkins fails

pixelsailor avatar Aug 17 '23 14:08 pixelsailor

It sounds like the path gets overridden and doesn't include /use/local/bin?

LaurentGoderre avatar Aug 17 '23 16:08 LaurentGoderre