I finally found what what was missing, i just had to install docker-compose inside the container A.
that’s why the error message said “docker-compose ENOENT”, i thought the problem was due to something missing with the docker-compose NodeJS api, or something was wrong with the docker-compose file for container B. But the solution was simply to install docker-compose in container A so it can read and run the docker-compose files ^^