Hello, Im new to Docker. I made image from container with commit command and now I cant run this image, not a single CMD command is executed. Surprisingly, I can go into the container from which the image is made and all the commands work there. Here is my Dockerfile:
CMD [“echo”, “hello”]
When creating a container from this image, any command in CMD produces an error like sh: can’t open ‘echo’: No such file or directory
However, if CMD is replaced with ENTRYPOINT, then everything works fine.
Sorry if this question is dumb and poorly worded. I’ve been struggling with this problem all night.