How Docker Works

Docker works by using a concept of linux namespace. Which essentially share the same resources as the host.

Therefore in the host you can see which processes running in the containers.