public BuildOptions cacheFrom(List<String> cacheFrom) {
        if (cacheFrom == null || cacheFrom.isEmpty()) {
            options.remove("cachefrom");
        } else {
            options.put("cachefrom", JsonFactory.newJsonArray(cacheFrom).toString());
        }
        return this;
    }
https://docs.docker.com/engine/api/v1.41/#operation/ImageBuild
@author roland
@since 03/01/17
src/main/java/io/fabric8/maven/docker/access/BuildOptions.java