code: def make_directory_writable(dirname):
    
    retval = shell_call(['docker', 'run', '-v',
                         '{0}:/output_dir'.format(dirname),
                         'busybox:1.27.2',
                         'chmod', '-R', 'a+rwx', '/output_dir'])
    if not retval:
      logging.error('Failed to change permissions on directory: %s', dirname)
    return retval
docs: Makes directory readable and writable by everybody.
  
    Args:
      dirname: name of the directory
  
    Returns:
      True if operation was successfull
  
    If you run something inside Docker container and it writes files, then
    these files will be written as root user with restricted permissions.
    So to be able to read/modify these files outside of Docker you have to change
    permissions to be world readable and writable.