Fix error creating list of volume bindings for Docker

This commit is contained in:
Andrew Donald Kennedy 2017-03-17 01:52:18 +00:00 committed by Ignasi Barrera
parent f5a5d869fe
commit 0793597891
1 changed files with 3 additions and 1 deletions

View File

@ -160,9 +160,11 @@ public class DockerComputeServiceAdapter implements
}
if (!templateOptions.getVolumes().isEmpty()) {
List<String> binds = Lists.newArrayList();
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()) {