def teardown_container(container_dir):
 try:
  img = _DiskImage(image=None, mount_dir=container_dir)
  img.teardown()
 except Exception as exn:
  LOG.exception(_('Failed to teardown ntainer filesystem: %s'), exn)

def teardown_container ( container_dir ) : try : img = _DiskImage ( image = None , mount_dir = container_dir ) img . teardown ( ) except Exception as exn : LOG . exception ( _ ( 'Failed to teardown ntainer filesystem: %s' ) , exn )
teardown the container rootfs mounting once it is spawned .