If you do a top on your Docker host, you may find a process for apache2 is PID 1234 but that is not the same as ID as in your container due to separation of processes and memory from the main host.
Here is how you find the real PID within the docker container.
cat /proc/1234/status|grep NSpid
NSpid: 1234 125172
The first ID we already know, it is 1234 the parentID but the second ID is the ID of the process as seen inside the actual docker container.
docker, container, idif, apache, pid, separation, processes, proc, grep, nspid, parentid,