TODO(gilbert): Consider to read the Image GC config dynamically. For now, the Image GC config can only be updated after the agent restarts.
| 7691 | // For now, the Image GC config can only be updated after the agent |
| 7692 | // restarts. |
| 7693 | void Slave::checkImageDiskUsage() |
| 7694 | { |
| 7695 | // TODO(gilbert): Container image gc is supported for docker image |
| 7696 | // in Mesos Containerizer for now. Add more image store gc supports |
| 7697 | // if necessary. |
| 7698 | Future<double>(::fs::usage(flags.docker_store_dir)) |
| 7699 | .onAny(defer(self(), &Slave::_checkImageDiskUsage, lambda::_1)); |
| 7700 | } |
| 7701 | |
| 7702 | |
| 7703 | void Slave::_checkImageDiskUsage(const Future<double>& usage) |