builder.cmd(job.getCommand());
builder.env(containerEnvStrings());
builder.exposedPorts(containerExposedPorts());
builder.domainname(host);
builder.volumes(volumes());
final Resources resources = job.getResources();
if (resources != null) {
builder.memory(resources.getMemory());
builder.memorySwap(resources.getMemorySwap());
builder.cpuset(resources.getCpuset());
builder.cpuShares(resources.getCpuShares());
}
containerDecorator.decorateContainerConfig(job, imageInfo, builder);
return builder.build();
}