@gsluthra thank you for your comment.
The problem was I was trying to run the bahmni-mart container inside the bahmni container(so docker inside docker) and that is not allowed by default to run the bahmni-mart container.
For this problem, one of the solutions is Sysbox.