Ansible + Docker

Hello

I have my server with docker , inside this docker I have (v24) all my playbooks are in the host server () when I run the playbooks this way I get out, but if I run the playbooks directly from the docker I have any issue.

Any idea why this can happen?

.