@rahul456 Thanks for pointing out this. Though its a simple one but it shows the lack of attention to detail. Also I wanted to point out that there is a small mistake in the question please correct it.
For the second container creation in the command it must be “/bin/bash” “-c” but only “c” is given which is causing the container to crash.