@@ -144,8 +144,7 @@ def diff(self):
144144
145145 def exec_run (self , cmd , stdout = True , stderr = True , stdin = False , tty = False ,
146146 privileged = False , user = '' , detach = False , stream = False ,
147- socket = False , environment = None , workdir = None , demux = False ,
148- use_config_proxy = False ):
147+ socket = False , environment = None , workdir = None , demux = False ):
149148 """
150149 Run a command inside this container. Similar to
151150 ``docker exec``.
@@ -168,10 +167,6 @@ def exec_run(self, cmd, stdout=True, stderr=True, stdin=False, tty=False,
168167 ``{"PASSWORD": "xxx"}``.
169168 workdir (str): Path to working directory for this exec session
170169 demux (bool): Return stdout and stderr separately
171- use_config_proxy (bool): If ``True``, and if the docker client
172- configuration file (``~/.docker/config.json`` by default)
173- contains a proxy configuration, the corresponding environment
174- variables will be set in the command's environment.
175170
176171 Returns:
177172 (ExecResult): A tuple of (exit_code, output)
@@ -190,7 +185,7 @@ def exec_run(self, cmd, stdout=True, stderr=True, stdin=False, tty=False,
190185 resp = self .client .api .exec_create (
191186 self .id , cmd , stdout = stdout , stderr = stderr , stdin = stdin , tty = tty ,
192187 privileged = privileged , user = user , environment = environment ,
193- workdir = workdir , use_config_proxy = use_config_proxy ,
188+ workdir = workdir ,
194189 )
195190 exec_output = self .client .api .exec_start (
196191 resp ['Id' ], detach = detach , tty = tty , stream = stream , socket = socket ,
@@ -682,6 +677,7 @@ def run(self, image, command=None, stdout=True, stderr=False,
682677 For example:
683678 ``{"Name": "on-failure", "MaximumRetryCount": 5}``
684679
680+ runtime (str): Runtime to use with this container.
685681 security_opt (:py:class:`list`): A list of string values to
686682 customize labels for MLS systems, such as SELinux.
687683 shm_size (str or int): Size of /dev/shm (e.g. ``1G``).
@@ -713,6 +709,10 @@ def run(self, image, command=None, stdout=True, stderr=False,
713709 tty (bool): Allocate a pseudo-TTY.
714710 ulimits (:py:class:`list`): Ulimits to set inside the container,
715711 as a list of :py:class:`docker.types.Ulimit` instances.
712+ use_config_proxy (bool): If ``True``, and if the docker client
713+ configuration file (``~/.docker/config.json`` by default)
714+ contains a proxy configuration, the corresponding environment
715+ variables will be set in the container being built.
716716 user (str or int): Username or UID to run commands as inside the
717717 container.
718718 userns_mode (str): Sets the user namespace mode for the container
@@ -737,7 +737,6 @@ def run(self, image, command=None, stdout=True, stderr=False,
737737 volumes_from (:py:class:`list`): List of container names or IDs to
738738 get volumes from.
739739 working_dir (str): Path to the working directory.
740- runtime (str): Runtime to use with this container.
741740
742741 Returns:
743742 The container logs, either ``STDOUT``, ``STDERR``, or both,
@@ -952,6 +951,7 @@ def prune(self, filters=None):
952951 'stdin_open' ,
953952 'stop_signal' ,
954953 'tty' ,
954+ 'use_config_proxy' ,
955955 'user' ,
956956 'volume_driver' ,
957957 'working_dir' ,
0 commit comments