Did you share the exact same Dockerfile that you used?
As far as I know npm install would need a file with the dependencies to install them. How do you create that file and copy to the image?
The error message also indicates there is something more in the image. For example a wrong entrypoint.
If the official image gives you that error message, it is possible that you created an image with the same name as the official image. If I run that command it works for me. It pulls the official image from Docker Hub.
looks like or this is exactly the same as you run?
npm install still doesn’t make sense without a package.json andnow. Using the commands you shared so far I can’t reproduce the issue. The only thing I can see is that you changed the entrypoint to curl which again, doesn’t make sense in a node js container and any argument that you pass to docker run after the image name will be the argument of curl.
The lack of the package.json is just one thing I noticed and has nothing to do with the argument related error message.I shared some of my ideas, but unless you can react to those ideas I don’t have more.
The shared Dockerfile can’t produce the error messages unless you overwrote some images. You can try to pull everything again.