code: public ContainerConfig containerConfig(final ImageInfo imageInfo,
                                           final Optional<String> dockerVersion) {
      final ContainerConfig.Builder builder = ContainerConfig.builder();
  
      builder.image(job.getImage());
      builder.cmd(job.getCommand());
      builder.hostname(job.getHostname());
      builder.env(containerEnvStrings());
      builder.exposedPorts(containerExposedPorts());
      builder.volumes(volumes().keySet());
      builder.labels(job.getLabels());
  
      for (final ContainerDecorator decorator : containerDecorators) {
        decorator.decorateContainerConfig(job, imageInfo, dockerVersion, builder);
      }
  
      return builder.build();
    }
docs: Create docker container configuration for a job.
  
  @param imageInfo The ImageInfo object.
  
  @return The ContainerConfig object.