@@ -178,11 +178,12 @@ def create(self, image, command=None, **kwargs):
178
178
``source:target:options``, where options is either
179
179
``ro`` or ``rw``.
180
180
name (str): Name to give to the service.
181
- networks (list of str): List of network names or IDs to attach
182
- the service to. Default: ``None``.
181
+ networks (:py:class:`list`): List of network names or IDs or
182
+ :py:class:`~docker.types.NetworkAttachmentConfig` to attach the
183
+ service to. Default: ``None``.
183
184
resources (Resources): Resource limits and reservations.
184
185
restart_policy (RestartPolicy): Restart policy for containers.
185
- secrets (list of :py:class:`docker.types.SecretReference`): List
186
+ secrets (list of :py:class:`~ docker.types.SecretReference`): List
186
187
of secrets accessible to containers for this service.
187
188
stop_grace_period (int): Amount of time to wait for
188
189
containers to terminate before forcefully killing them.
@@ -205,8 +206,9 @@ def create(self, image, command=None, **kwargs):
205
206
the container's `hosts` file.
206
207
dns_config (DNSConfig): Specification for DNS
207
208
related configurations in resolver configuration file.
208
- configs (:py:class:`list`): List of :py:class:`ConfigReference`
209
- that will be exposed to the service.
209
+ configs (:py:class:`list`): List of
210
+ :py:class:`~docker.types.ConfigReference` that will be exposed
211
+ to the service.
210
212
privileges (Privileges): Security options for the service's
211
213
containers.
212
214
0 commit comments