code: def _find_volume(name):
      '''
      Find volume by name on minion
      '''
      docker_volumes = __salt__['docker.volumes']()['Volumes']
      if docker_volumes:
          volumes = [v for v in docker_volumes if v['Name'] == name]
          if volumes:
              return volumes[0]
  
      return Nonf _find_volume(name):
      '''
      Find volume by name on minion
      '''
      docker_volumes = __salt__['docker.volumes']()['Volumes']
      if docker_volumes:
          volumes = [v for v in docker_volumes if v['Name'] == name]
          if volumes:
              return volumes[0]
  
      return None
docs: Find volume by name on minion