mirror of https://github.com/apache/jclouds.git
Fix error creating list of volume bindings for Docker
This commit is contained in:
parent
f5a5d869fe
commit
0793597891
|
@ -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