We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Top

The docker top command shows the running processes inside a container.

docker top CONTAINER [ps OPTIONS]

Use stats for entire containers and top for processes in a container.

Assignment

Make sure you still have your cpu-stress and mem-stress containers running.

# Check the processes in the CPU-intensive container
docker top cpu-stress

# Check the processes in the memory-intensive container
docker top mem-stress

You should notice that the CPU intensive container has two processes with high CPU usage (The "C" column), while the memory intensive container only has one.

Answer the question.