return getEntity().getConfig(DockerHost.EPEL_RELEASE);
}
@Override
public boolean isRunning() {
ScriptHelper helper = newScript(CHECK_RUNNING)
.body.append(alternatives(
ifExecutableElse1("boot2docker", sudo("boot2docker status")),
ifExecutableElse1("service", sudo("service docker status"))))
.failOnNonZeroResultCode()
.gatherOutput();
helper.execute();
return helper.getResultStdout().contains("running");
}