Try to guess the container engine in use

... then use appropriate method to extract the container's PID.