docker comes with the monitor command
PS
docker PS see the running container
-a display has stopped container
top
view of a process vessel running
stats
Shows the usage of resources of each container
monitoring container weave scope
maximum characteristics weave scope that will automatically generate a Docker FIG container, direct visual monitoring and control containers see
Step installation:
curl -L git.io/scope -o /usr/local/bin/scope
chmod a+x /usr/local/bin/scope
The second step to start:
scope launch
The third step is to enter:
According prompt access address, Weave Scope of http: // [Host_IP]: 4040 /
weave scope to monitor multiple hosts
first step: the above two hosts need to install weave scope (two hosts need to be performed)
curl -L git.io/scope -o /usr/local/bin/scope
chmod a+x /usr/local/bin/scope
Step two: both execute the following command on both the host
this way, both access http://192.168.200.13:4040 or http: //192.168.200.144040, be able to monitor the two host.
scope launch 192.168.200.13 192.168.200.14
Step 3: Check the host
Step 4: Check the running container
Step five: search
if too many vessels deployed (very common), Weave Scope also provides a powerful search function