How to list available container shell commands? (compgen alternative for container)

I want to list all available container shell commands to get the command for specific service.
At non-virtualized shell I can do compgen -c | grep <command>.
What’s the alternative for container shell?

The goal I’m trying to achieve is get the php-fpm executable of PHP-FPM inside of container and use it via docker exec with $command --version.