This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # -- | |
| # Test if Docker daemon disk space usage is above a given limit in bytes. | |
| # | |
| # Example 1: Docker disk space usage is above limit | |
| # | |
| # $ source is_docker_disk_space_usage_above_limit.sh | |
| # $ is_docker_disk_space_usage_above_limit 1 | |
| # Docker disk space usage is above limit (actual: 1050000005B, limit: 1B) | |
| # $ printf $? |