Cannot link to docker-containerized php runtime for package ide-php

When installing the ide-php package I need to set my php runtime. I tried all hacks I found over the internet, based upon the idea of a local file"php" with the following content:
docker exec my_php_container /usr/local/bin/php “$@”

But I don’t get over exit code 64, 126 and “php runtime unexpectedly stopped” errors.
Is there a way to use php in a container in Atom or do I have to set up my whole development and debug environment locally?

Thanks for any help,