com.github.dockerjava.client.command
Class LogContainerCmd
java.lang.Object
com.github.dockerjava.client.command.AbstrDockerCmd<LogContainerCmd,com.sun.jersey.api.client.ClientResponse>
com.github.dockerjava.client.command.LogContainerCmd
- All Implemented Interfaces:
- DockerCmd<com.sun.jersey.api.client.ClientResponse>
public class LogContainerCmd
- extends AbstrDockerCmd<LogContainerCmd,com.sun.jersey.api.client.ClientResponse>
Get container logs
LogContainerCmd
public LogContainerCmd(String containerId)
getContainerId
public String getContainerId()
getTail
public int getTail()
hasFollowStreamEnabled
public boolean hasFollowStreamEnabled()
hasTimestampsEnabled
public boolean hasTimestampsEnabled()
hasStdoutEnabled
public boolean hasStdoutEnabled()
hasStderrEnabled
public boolean hasStderrEnabled()
withContainerId
public LogContainerCmd withContainerId(String containerId)
withFollowStream
public LogContainerCmd withFollowStream()
withFollowStream
public LogContainerCmd withFollowStream(boolean followStream)
withTimestamps
public LogContainerCmd withTimestamps(boolean timestamps)
withStdOut
public LogContainerCmd withStdOut()
withStdOut
public LogContainerCmd withStdOut(boolean stdout)
withStdErr
public LogContainerCmd withStdErr()
withStdErr
public LogContainerCmd withStdErr(boolean stderr)
withTailAll
public LogContainerCmd withTailAll()
withTail
public LogContainerCmd withTail(int tail)
toString
public String toString()
- Overrides:
toString
in class Object
impl
protected com.sun.jersey.api.client.ClientResponse impl()
throws DockerException
- Throws:
DockerException
Copyright © 2014. All rights reserved.