Does all running docker containers have a separate process ID Does all running docker containers have a separate process ID docker docker

Does all running docker containers have a separate process ID


Yes, every docker container will have a different PID on your host machine.

You can get a docker containers PID by doing:

docker inspect --format '{{ .State.Pid }}' CONTAINER_ID

If you kill the process on your host, your docker container will die.