Is the installation of the Apache web server done from the binary packages in the distribution or from source code?

Is the installation of the Apache web server done from the binary packages in the distribution or from source code?

Installation where?

(If this is indeed a Docker-related question, then obviously the official image may help.)

when we use
docker pull httpd
in our host

I’d not use the term “installation” in this context. It’s just a ready to use (binary) image, in which Apache httpd is already installed, and which a pull copies to your host as is.