I was setting up a Selenium server using docker, basically following this github tutorial.
I have no problem setting up the server, but I noticed that the processes that I started inside the docker image actually got shown up on my host process list.
As you can see in the screen shot, the docker ran a bash script and also executed a jar file, which I assume should only happen inside the box. Does this mean the user from the host could possibly kill a certain process outside the container which will totally screw up the world inside the box?
When I stopped the container, all the processes went away as I expected.
Is this the way Docker is designed for.. and the flawed isolation is what you have to accept in trade for the lightweight comparing with Virtualbox/Vagrant...
or I am doing anything wrong?
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…