public static ContainerDescription buildCoreAgentContainerDescription(){
  ContainerDescription cd=new ContainerDescription();
  cd.documentSelfLink=AGENT_CONTAINER_DESCRIPTION_LINK;
  cd.name=AGENT_CONTAINER_NAME;
  cd.image=getAgentImageNameAndVersion();
  cd.publishAll=true;
  cd.volumes=AGENT_CONTAINER_VOLUMES;
  cd.restartPolicy="always";
  return cd;
}

public static ContainerDescription buildCoreAgentContainerDescription ( ) { ContainerDescription cd = new ContainerDescription ( ) ; cd . documentSelfLink = AGENT_CONTAINER_DESCRIPTION_LINK ; cd . name = AGENT_CONTAINER_NAME ; cd . image = getAgentImageNameAndVersion ( ) ; cd . publishAll = true ; cd . volumes = AGENT_CONTAINER_VOLUMES ; cd . restartPolicy = "always" ; return cd ; }
create a container description to be used for installing host agents containers .
