How To Monitor Docker Container Using Docker System Command
Hello Everyone
Welcome to CloudAffaire and this is Debjeet.
In the last blog post, we have discussed docker container management using docker container command.
https://cloudaffaire.com/how-to-create-and-manage-docker-containers/
In this blog post, we will discuss docker system. Docker provides a set of tools to monitor docker resource utilization.
Prerequisite for this demo:
- One AWS EC2 instance with Linux 2 AMI and internet access.
- Docker
How To Monitor Docker Container Using Docker System Command:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
##-------------------------- ## Docker: System Management ##-------------------------- ## docker system [COMMAND] ## Manage Docker ## Usage: docker system COMMAND ## Commands: ## df : Show docker disk usage ## events : Get real time events from the server ## info : Display system-wide information ## prune : Remove unused data ## Show docker disk usage ## Usage: docker system df [OPTIONS] ## Options: ## --format : String Pretty-print images using a Go template ## -v, --verbose : Show detailed information on space usage docker system df ## Display system-wide information ## Usage: docker system info [OPTIONS] ## Options: ## -f, --format : string Format the output using the given Go template docker system info ## Get real time events from the server ## Usage: docker system events [OPTIONS] ## Options: ## -f, --filter filter : Filter output based on conditions provided ## --format string : Format the output using the given Go template ## --since string : Show all events created since timestamp ## --until string : Stream events until this timestamp docker system events ## Remove unused data ## Usage: docker system prune [OPTIONS] ## Options: ## -a, --all : Remove all unused images not just dangling ones ## --filter filter : Provide filter values (e.g. 'label= ## -f, --force : Do not prompt for confirmation ## --volumes : Prune volumes docker system prune |
Hope you have enjoyed this article. In the next blog post, we will discuss docker images.
To get more details on docker, please refer below docker documentation