Constructor and Description |
---|
Bind(String path,
Volume volume) |
Bind(String path,
Volume volume,
AccessMode accessMode) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
AccessMode |
getAccessMode() |
String |
getPath() |
Volume |
getVolume() |
int |
hashCode() |
static Bind |
parse(String serialized)
Parses a bind mount specification to a
Bind . |
String |
toString()
Returns a string representation of this
Bind suitable for inclusion in a JSON message. |
public Bind(String path, Volume volume, AccessMode accessMode)
public String getPath()
public Volume getVolume()
public AccessMode getAccessMode()
public static Bind parse(String serialized)
Bind
.serialized
- the specification, e.g. /host:/container:ro
Bind
matching the specificationIllegalArgumentException
- if the specification cannot be parsedCopyright © 2016. All Rights Reserved.