@@ -388,13 +388,13 @@ def create_container(self, image, command=None, hostname=None, user=None,
388388 environment (dict or list): A dictionary or a list of strings in
389389 the following format ``["PASSWORD=xxx"]`` or
390390 ``{"PASSWORD": "xxx"}``.
391- dns (list): DNS name servers. Deprecated since API version 1.10.
392- Use ``host_config`` instead.
393- dns_opt (list): Additional options to be added to the container's
394- ``resolv.conf`` file
391+ dns (:py:class:` list` ): DNS name servers. Deprecated since API
392+ version 1.10. Use ``host_config`` instead.
393+ dns_opt (:py:class:` list` ): Additional options to be added to the
394+ container's ``resolv.conf`` file
395395 volumes (str or list):
396- volumes_from (list): List of container names or Ids to get
397- volumes from.
396+ volumes_from (:py:class:` list` ): List of container names or Ids to
397+ get volumes from.
398398 network_disabled (bool): Disable networking
399399 name (str): A name for the container
400400 entrypoint (str or list): An entrypoint
@@ -478,19 +478,19 @@ def create_host_config(self, *args, **kwargs):
478478 device_write_bps: Limit write rate (bytes per second) from a
479479 device.
480480 device_write_iops: Limit write rate (IO per second) from a device.
481- devices (list): Expose host devices to the container, as a list
482- of strings in the form
481+ devices (:py:class:` list` ): Expose host devices to the container,
482+ as a list of strings in the form
483483 ``<path_on_host>:<path_in_container>:<cgroup_permissions>``.
484484
485485 For example, ``/dev/sda:/dev/xvda:rwm`` allows the container
486486 to have read-write access to the host's ``/dev/sda`` via a
487487 node named ``/dev/xvda`` inside the container.
488- dns (list): Set custom DNS servers.
489- dns_search (list): DNS search domains.
488+ dns (:py:class:` list` ): Set custom DNS servers.
489+ dns_search (:py:class:` list` ): DNS search domains.
490490 extra_hosts (dict): Addtional hostnames to resolve inside the
491491 container, as a mapping of hostname to IP address.
492- group_add (list): List of additional group names and/or IDs that
493- the container process will run as.
492+ group_add (:py:class:` list` ): List of additional group names and/or
493+ IDs that the container process will run as.
494494 ipc_mode (str): Set the IPC mode for the container.
495495 isolation (str): Isolation technology to use. Default: `None`.
496496 links (dict or list of tuples): Either a dictionary mapping name
@@ -539,8 +539,8 @@ def create_host_config(self, *args, **kwargs):
539539 - ``Name`` One of ``on-failure``, or ``always``.
540540 - ``MaximumRetryCount`` Number of times to restart the
541541 container on failure.
542- security_opt (list): A list of string values to customize labels
543- for MLS systems, such as SELinux.
542+ security_opt (:py:class:` list` ): A list of string values to
543+ customize labels for MLS systems, such as SELinux.
544544 shm_size (str or int): Size of /dev/shm (e.g. ``1G``).
545545 sysctls (dict): Kernel parameters to set in the container.
546546 tmpfs (dict): Temporary filesystems to mount, as a dictionary
@@ -555,13 +555,13 @@ def create_host_config(self, *args, **kwargs):
555555 '/mnt/vol1': 'size=3G,uid=1000'
556556 }
557557
558- ulimits (list): Ulimits to set inside the container, as a list of
559- dicts.
558+ ulimits (:py:class:` list` ): Ulimits to set inside the container,
559+ as a list of dicts.
560560 userns_mode (str): Sets the user namespace mode for the container
561561 when user namespace remapping option is enabled. Supported
562562 values are: ``host``
563- volumes_from (list): List of container names or IDs to get
564- volumes from.
563+ volumes_from (:py:class:` list` ): List of container names or IDs to
564+ get volumes from.
565565
566566
567567 Returns:
@@ -618,17 +618,17 @@ def create_endpoint_config(self, *args, **kwargs):
618618 :py:meth:`create_networking_config`.
619619
620620 Args:
621- aliases (list): A list of aliases for this endpoint. Names in
622- that list can be used within the network to reach the
621+ aliases (:py:class:`list`): A list of aliases for this endpoint.
622+ Names in that list can be used within the network to reach the
623+ container. Defaults to ``None``.
624+ links (:py:class:`list`): A list of links for this endpoint.
625+ Containers declared in this list will be linked to this
623626 container. Defaults to ``None``.
624- links (list): A list of links for this endpoint. Containers
625- declared in this list will be linked to this container.
626- Defaults to ``None``.
627627 ipv4_address (str): The IP address of this container on the
628628 network, using the IPv4 protocol. Defaults to ``None``.
629629 ipv6_address (str): The IP address of this container on the
630630 network, using the IPv6 protocol. Defaults to ``None``.
631- link_local_ips (list): A list of link-local (IPv4/IPv6)
631+ link_local_ips (:py:class:` list` ): A list of link-local (IPv4/IPv6)
632632 addresses.
633633
634634 Returns:
0 commit comments