mirror of https://github.com/docker/docker-py.git
				
				
				
			Amends the docs concerning multiple label filters
Closes #2338 Signed-off-by: Frank Sachsenheim <funkyfuture@riseup.net>
This commit is contained in:
		
							parent
							
								
									63760b1922
								
							
						
					
					
						commit
						c88205c5ce
					
				|  | @ -174,7 +174,8 @@ class ContainerApiMixin(object): | |||
|                 - `exited` (int): Only containers with specified exit code | ||||
|                 - `status` (str): One of ``restarting``, ``running``, | ||||
|                     ``paused``, ``exited`` | ||||
|                 - `label` (str): format either ``"key"`` or ``"key=value"`` | ||||
|                 - `label` (str|list): format either ``"key"``, ``"key=value"`` | ||||
|                     or a list of such. | ||||
|                 - `id` (str): The id of the container. | ||||
|                 - `name` (str): The name of the container. | ||||
|                 - `ancestor` (str): Filter by container ancestor. Format of | ||||
|  |  | |||
|  | @ -70,7 +70,8 @@ class ImageApiMixin(object): | |||
|             filters (dict): Filters to be processed on the image list. | ||||
|                 Available filters: | ||||
|                 - ``dangling`` (bool) | ||||
|                 - ``label`` (str): format either ``key`` or ``key=value`` | ||||
|                 - `label` (str|list): format either ``"key"``, ``"key=value"`` | ||||
|                     or a list of such. | ||||
| 
 | ||||
|         Returns: | ||||
|             (dict or list): A list if ``quiet=True``, otherwise a dict. | ||||
|  |  | |||
|  | @ -15,7 +15,8 @@ class NetworkApiMixin(object): | |||
|             filters (dict): Filters to be processed on the network list. | ||||
|                 Available filters: | ||||
|                 - ``driver=[<driver-name>]`` Matches a network's driver. | ||||
|                 - ``label=[<key>]`` or ``label=[<key>=<value>]``. | ||||
|                 - ``label=[<key>]``, ``label=[<key>=<value>]`` or a list of | ||||
|                     such. | ||||
|                 - ``type=["custom"|"builtin"]`` Filters networks by type. | ||||
| 
 | ||||
|         Returns: | ||||
|  |  | |||
|  | @ -900,7 +900,8 @@ class ContainerCollection(Collection): | |||
|                 - `exited` (int): Only containers with specified exit code | ||||
|                 - `status` (str): One of ``restarting``, ``running``, | ||||
|                     ``paused``, ``exited`` | ||||
|                 - `label` (str): format either ``"key"`` or ``"key=value"`` | ||||
|                 - `label` (str|list): format either ``"key"``, ``"key=value"`` | ||||
|                     or a list of such. | ||||
|                 - `id` (str): The id of the container. | ||||
|                 - `name` (str): The name of the container. | ||||
|                 - `ancestor` (str): Filter by container ancestor. Format of | ||||
|  |  | |||
|  | @ -350,7 +350,8 @@ class ImageCollection(Collection): | |||
|             filters (dict): Filters to be processed on the image list. | ||||
|                 Available filters: | ||||
|                 - ``dangling`` (bool) | ||||
|                 - ``label`` (str): format either ``key`` or ``key=value`` | ||||
|                 - `label` (str|list): format either ``"key"``, ``"key=value"`` | ||||
|                     or a list of such. | ||||
| 
 | ||||
|         Returns: | ||||
|             (list of :py:class:`Image`): The images. | ||||
|  |  | |||
|  | @ -190,7 +190,8 @@ class NetworkCollection(Collection): | |||
|             filters (dict): Filters to be processed on the network list. | ||||
|                 Available filters: | ||||
|                 - ``driver=[<driver-name>]`` Matches a network's driver. | ||||
|                 - ``label=[<key>]`` or ``label=[<key>=<value>]``. | ||||
|                 - `label` (str|list): format either ``"key"``, ``"key=value"`` | ||||
|                     or a list of such. | ||||
|                 - ``type=["custom"|"builtin"]`` Filters networks by type. | ||||
|             greedy (bool): Fetch more details for each network individually. | ||||
|                 You might want this to get the containers attached to them. | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue