com.bmuschko.gradle.docker.tasks.network.DockerRemoveNetwork.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-docker-plugin Show documentation
Show all versions of gradle-docker-plugin Show documentation
Gradle plugin for managing Docker images and containers.
package com.bmuschko.gradle.docker.tasks.network
import com.github.dockerjava.api.DockerClient
class DockerRemoveNetwork extends DockerExistingNetwork {
@Override
void runRemoteCommand(DockerClient dockerClient) {
logger.quiet "Removing network '${networkId.get()}'."
dockerClient.removeNetworkCmd(networkId.get()).exec()
}
}