cli icon indicating copy to clipboard operation
cli copied to clipboard

Check for available Docker resources

Open Schille opened this issue 4 years ago • 1 comments

K8s clusters are relatively resource demanding on local environments. Often Decks cannot be installed because of node pressure - missing disk space, memory and so on. What about a check (maybe after the install command) to see whether everything is fine or if we can identify common issues and offer help.

Schille avatar Jun 14 '21 12:06 Schille

docker system df offers disk information. However these may not be of any use. We probably have to check the local disk information (something like df -h).

From what I know the disk usage of docker is limited. In terms of disk space we could therefore just check the available space. If it is < X GB we display a warning and if it is really small like Y < X GB * 0.5 we exit with an error?

docker info provides us with available memory and CPU information.

docker stats --no-stream offers current memory and CPU information.

SteinRobert avatar Oct 25 '21 21:10 SteinRobert