mirror of https://github.com/apache/jclouds.git
Fix error creating list of volume bindings for Docker
This commit is contained in:
parent
fdaa3fd721
commit
c3c86de9e5
|
@ -160,9 +160,11 @@ public class DockerComputeServiceAdapter implements
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!templateOptions.getVolumes().isEmpty()) {
|
if (!templateOptions.getVolumes().isEmpty()) {
|
||||||
|
List<String> binds = Lists.newArrayList();
|
||||||
for (Map.Entry<String, String> entry : templateOptions.getVolumes().entrySet()) {
|
for (Map.Entry<String, String> entry : templateOptions.getVolumes().entrySet()) {
|
||||||
hostConfigBuilder.binds(ImmutableList.of(entry.getKey() + ":" + entry.getValue()));
|
binds.add(entry.getKey() + ":" + entry.getValue());
|
||||||
}
|
}
|
||||||
|
hostConfigBuilder.binds(ImmutableList.copyOf(binds));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!templateOptions.getVolumesFrom().isEmpty()) {
|
if (!templateOptions.getVolumesFrom().isEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue