Day-2 Assigment-2
5 Differences between CMD and ENTRYPOINT with example CMD Entrypoint the executable command will be replaced by the command 1. The executable command can’t be changedgiven while running the container We can’t pass the arguments for the CMD command 2. The commands passed while running the container will be appended to the RUN command Multiple times can be added in the dockerfile 3. same as CMDbut the last line will override the previous Choose CMD if you need to provide
Read more