mirror of https://github.com/apache/jclouds.git
Set hostname in template options
This commit is contained in:
parent
0126d322fa
commit
53b225c492
|
@ -100,6 +100,10 @@ public class DockerComputeServiceAdapter implements
|
|||
containerConfigBuilder.memory(templateOptions.getMemory().get());
|
||||
}
|
||||
|
||||
if (templateOptions.getHostname().isPresent()) {
|
||||
containerConfigBuilder.hostname(templateOptions.getHostname().get());
|
||||
}
|
||||
|
||||
if (templateOptions.getCpuShares().isPresent()) {
|
||||
containerConfigBuilder.cpuShares(templateOptions.getCpuShares().get());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue