What about processes?
One of the great things about Docker is that it isn't really virtualization; as mentioned in the previous chapter, it is a great way of isolating processes rather than running an entire operating system.
This can get confusing when running tools such as top
or ps
. To get an idea just how confusing this can get, lets launch several containers using docker-compose
and see for ourselves:
[vagrant@centos7 ~]$ cd /monitoring_docker/Chapter01/02-multiple [vagrant@centos7 02-multiple]$ docker-compose up -d Creating 02multiple_web_1... [vagrant@centos7 02-multiple]$ docker-compose scale web=5 Creating 02multiple_web_2... Creating 02multiple_web_3... Creating 02multiple_web_4... Creating 02multiple_web_5... Starting 02multiple_web_2... Starting 02multiple_web_3... Starting 02multiple_web_4... Starting 02multiple_web_5...
Now, we have five web servers that have all been launched from the same image using the same configuration. One of the first things I do when logging into...