mirror of
https://github.com/apache/jclouds.git
synced 2025-03-04 15:29:13 +00:00
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…
x
Reference in New Issue
Block a user