code: def create_volume(name, driver=None, driver_opts=None):
      '''
      Create a new volume
  
      .. versionadded:: 2015.8.4
  
      name
          name of volume
  
      driver
          Driver of the volume
  
      driver_opts
          Options for the driver volume
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion docker.create_volume my_volume driver=local
      '''
      response = _client_wrapper('create_volume', name, driver=driver,
                                 driver_opts=driver_opts)
      _clear_context()
      # Only non-error return case is a True return, so just return the response
      return responsf create_volume(name, driver=None, driver_opts=None):
      '''
      Create a new volume
  
      .. versionadded:: 2015.8.4
  
      name
          name of volume
  
      driver
          Driver of the volume
  
      driver_opts
          Options for the driver volume
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion docker.create_volume my_volume driver=local
      '''
      response = _client_wrapper('create_volume', name, driver=driver,
                                 driver_opts=driver_opts)
      _clear_context()
      # Only non-error return case is a True return, so just return the response
      return response
docs: Create a new volume
  
      .. versionadded:: 2015.8.4
  
      name
          name of volume
  
      driver
          Driver of the volume
  
      driver_opts
          Options for the driver volume
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion docker.create_volume my_volume driver=local