2016-06-03 10:55:19 +00:00
|
|
|
---
|
|
|
|
|
2016-06-06 14:33:45 +00:00
|
|
|
root_free_inodes:
|
|
|
|
name: Ensure there are at least 30% free inodes on /
|
2016-06-03 10:55:19 +00:00
|
|
|
command: test $(df -i | grep "/$" | xargs | cut -d ' ' -f 5 | sed "s/%//") -lt 70
|
2016-06-06 14:33:45 +00:00
|
|
|
|
|
|
|
docker_free_inodes:
|
|
|
|
name: Ensure there are at least 30% free inodes on /var/lib/docker
|
2016-06-03 10:55:19 +00:00
|
|
|
command: test $(df -i | grep "/var/lib/docker$" | xargs | cut -d ' ' -f 5 | sed "s/%//") -lt 70
|
2016-06-06 14:33:45 +00:00
|
|
|
|
|
|
|
docker_free_diskspace:
|
|
|
|
name: Ensure there is at least 30% free disk space on /var/lib/docker
|
2016-06-03 10:55:19 +00:00
|
|
|
command: test $(df | grep "/var/lib/docker$" | xargs | cut -d ' ' -f 5 | sed "s/%//") -lt 70
|
2016-06-06 14:33:45 +00:00
|
|
|
|
|
|
|
docker_mounted:
|
|
|
|
name: Ensure volume on /var/lib/docker is mounted
|
2016-06-03 10:55:19 +00:00
|
|
|
command: mount | grep -q /var/lib/docker
|
2016-06-06 14:33:45 +00:00
|
|
|
|
|
|
|
docker_start_container:
|
|
|
|
name: Ensure docker can start a small container
|
|
|
|
command: docker run --rm alpine /bin/sh -c "echo testing123" | grep -q testing123
|