Hi,

I try to integrate the `plugin` for docker in the `gradle file`.

When I run the command:
`gradle pushImage`

I get this error:

``````.TaskExecutionException: Execution failed for task ':buildImage'.
Caused by: java.lang.NullPointerException: Cannot invoke method withContext() on null object
``````

But in fact, I have a `"context"`, because I called the `task` `buildImage` which contains a “inputDirectory”, which I define same like in the documentation. `inputDir = createDockerfile.destFile.parentFile`

This is how my task look:

``````task buildImage(type: DockerBuildImage, dependsOn: createDockerfile) {
inputDir = createDockerfile.destFile.parentFile
registryCredentials = dockerRegistryCredentials
}
``````

About any idea, I would be very happy, or tips,

thank you