code: def creator(entry, config):
          
          template_file = os.path.join(os.path.dirname(__file__), 'templates/docker-container.sh.j2')
  
          with open(template_file) as handle:
              template = handle.read()
              # all fields are re-rendered via the Bash script
              wrapped_script = render(template, container={
                  'image': 'centos:7' if 'image' not in entry else entry['image'],
                  'remove': True if 'remove' not in entry else str(entry['remove']).lower(),
                  'background': False if 'background' not in entry else str(entry['background']).lower(),
                  'mount': False if 'mount' not in entry else str(entry['mount']).lower(),
                  'network': '' if 'network' not in entry else entry['network'],
                  'labels': {} if 'labels' not in entry else entry['labels'],
                  'script': config.script
              })
  
              config.script = wrapped_script
  
          return Container(config)
docs: Creator function for creating an instance of a Bash.