@@ -388,13 +388,13 @@ def create_container(self, image, command=None, hostname=None, user=None,
388
388
environment (dict or list): A dictionary or a list of strings in
389
389
the following format ``["PASSWORD=xxx"]`` or
390
390
``{"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
395
395
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.
398
398
network_disabled (bool): Disable networking
399
399
name (str): A name for the container
400
400
entrypoint (str or list): An entrypoint
@@ -478,19 +478,19 @@ def create_host_config(self, *args, **kwargs):
478
478
device_write_bps: Limit write rate (bytes per second) from a
479
479
device.
480
480
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
483
483
``<path_on_host>:<path_in_container>:<cgroup_permissions>``.
484
484
485
485
For example, ``/dev/sda:/dev/xvda:rwm`` allows the container
486
486
to have read-write access to the host's ``/dev/sda`` via a
487
487
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.
490
490
extra_hosts (dict): Addtional hostnames to resolve inside the
491
491
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.
494
494
ipc_mode (str): Set the IPC mode for the container.
495
495
isolation (str): Isolation technology to use. Default: `None`.
496
496
links (dict or list of tuples): Either a dictionary mapping name
@@ -539,8 +539,8 @@ def create_host_config(self, *args, **kwargs):
539
539
- ``Name`` One of ``on-failure``, or ``always``.
540
540
- ``MaximumRetryCount`` Number of times to restart the
541
541
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.
544
544
shm_size (str or int): Size of /dev/shm (e.g. ``1G``).
545
545
sysctls (dict): Kernel parameters to set in the container.
546
546
tmpfs (dict): Temporary filesystems to mount, as a dictionary
@@ -555,13 +555,13 @@ def create_host_config(self, *args, **kwargs):
555
555
'/mnt/vol1': 'size=3G,uid=1000'
556
556
}
557
557
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.
560
560
userns_mode (str): Sets the user namespace mode for the container
561
561
when user namespace remapping option is enabled. Supported
562
562
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.
565
565
566
566
567
567
Returns:
@@ -618,17 +618,17 @@ def create_endpoint_config(self, *args, **kwargs):
618
618
:py:meth:`create_networking_config`.
619
619
620
620
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
623
626
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``.
627
627
ipv4_address (str): The IP address of this container on the
628
628
network, using the IPv4 protocol. Defaults to ``None``.
629
629
ipv6_address (str): The IP address of this container on the
630
630
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)
632
632
addresses.
633
633
634
634
Returns:
0 commit comments