ps command doesn't work in docker container
In case you can't install the procps package (don't have proper permissions) you can use /proc directory.
The first few directories (named as numbers) are PIDs of your processes. Inside directories, you can find additional information useful to decipher which process is connected to each PID. For example, you can use the cat command to view "cmdline" file to check which process is connected to PID.
$ ls /proc1 10 11 ...$ ls -1 /proc/22attrautogroupauxvcgroupclear_refscmdline...$ cat /proc/22/cmdline /bin/sh