All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.voovan.docker.command.Volume.CmdVolumePrune Maven / Gradle / Ivy

Go to download

By encapsulating the Docker API enables developers to use Java can quickly developed the control and operation of the Docker application, using streaming operation, simple and clear.

The newest version!
package org.voovan.docker.command.Volume;

import org.voovan.docker.command.Cmd;
import org.voovan.docker.network.DockerClientException;
import org.voovan.docker.network.Result;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 类文字命名
 *
 * @author helyho
 *         

* JDocker Framework. * WebSite: https://github.com/helyho/JDocker * Licence: Apache v2 License */ public class CmdVolumePrune extends Cmd { private Map> filters; public CmdVolumePrune() { filters = new HashMap>(); } public static CmdVolumePrune newInstance(String nameOrId){ return new CmdVolumePrune(); } @Override public String send() throws Exception { Result result = getDockerHttpClient().run("POST","/containers/prune", getParameters()); if(result!=null && result.getStatus()>=300){ throw new DockerClientException(result.getMessage()); }else{ return result.getMessage(); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy