Thank you for the question. entrypoint is used when you want to have a static command because you cannot change the command that you pass in entrypoint. cmd can be used when you want to have a dynamic command which can be changes at runtime. Also the instructions in cmd as used as arguements in entrypoint command. So depending on you use case you can use cmd and entrypoint in combo. It is not necessary that you have to use them both. I have another video where i have explained about entrypoint vs cmd. Would encourage you to go through that. Below is the link. ruclips.net/video/c-J9UCQXl3c/видео.html Hope this helps!
Thank you so much😊
You are welcome
Hi Sir....Thank u very much...ur videos are very helpfull
Thank you so much and appreciate the feedback! Glad that you find the videos helpful!
Why should we use combo of cmd and entrypoint
Thank you for the question.
entrypoint is used when you want to have a static command because you cannot change the command that you pass in entrypoint.
cmd can be used when you want to have a dynamic command which can be changes at runtime. Also the instructions in cmd as used as arguements in entrypoint command.
So depending on you use case you can use cmd and entrypoint in combo. It is not necessary that you have to use them both.
I have another video where i have explained about entrypoint vs cmd. Would encourage you to go through that. Below is the link.
ruclips.net/video/c-J9UCQXl3c/видео.html
Hope this helps!