Q3. Write a example dockerfile with 2 CMD, 2 ENTRYPOINT and 1 CMD/1ENTRYPOINT and write down a behaviour of it.

DevOps

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Sceraniro 1

2 CMD – the last CMD will override the first one

Scenario 2

2 EntryPoint – the last ENTRYPOINT will override the first one

Scenario 3

1 ENTRYPOINT and 1CMD – Entrypoint will override CMD