com.github.dockerjava.api.model
Class Bind
java.lang.Object
com.github.dockerjava.api.model.Bind
public class Bind
- extends Object
Bind
public Bind(String path,
Volume volume)
Bind
public Bind(String path,
Volume volume,
boolean readOnly)
getPath
public String getPath()
getVolume
public Volume getVolume()
isReadOnly
public boolean isReadOnly()
parse
public static Bind parse(String serialized)
- Parses a bind mount specification to a
Bind
.
- Parameters:
serialized
- the specification, e.g. /host:/container:ro
- Returns:
- a
Bind
matching the specification
- Throws:
IllegalArgumentException
- if the specification cannot be parsed
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2014. All rights reserved.