The COMMAND column in docker ps is cut off after about twenty characters, with an ellipsis right where the interesting flags start. --no-trunc prints it in full.
docker ps --no-trunc --format 'table {{.Names}}\t{{.Command}}'
Now you see the whole entrypoint plus its arguments, for example which config file a process was started with. The same flag also shows full 64 character container IDs instead of the short twelve, which you sometimes need to match a folder under /var/lib/docker/containers or a cgroup path.
Without a --format, the full table gets very wide, so I’d always combine the two and pick the columns you need. Add -a to include stopped containers, which is handy when one exited and you want to see what it tried to run.
The column shows the command as Docker stored it, entrypoint and arguments joined together with quotes. If the image starts a shell script that launches the real program, you see the script, not the program. For that, docker top lists the processes that are actually running inside the container.
Further reading: docker container ls