@@ -144,8 +144,7 @@ def diff(self):
144
144
145
145
def exec_run (self , cmd , stdout = True , stderr = True , stdin = False , tty = False ,
146
146
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 ):
149
148
"""
150
149
Run a command inside this container. Similar to
151
150
``docker exec``.
@@ -168,10 +167,6 @@ def exec_run(self, cmd, stdout=True, stderr=True, stdin=False, tty=False,
168
167
``{"PASSWORD": "xxx"}``.
169
168
workdir (str): Path to working directory for this exec session
170
169
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.
175
170
176
171
Returns:
177
172
(ExecResult): A tuple of (exit_code, output)
@@ -190,7 +185,7 @@ def exec_run(self, cmd, stdout=True, stderr=True, stdin=False, tty=False,
190
185
resp = self .client .api .exec_create (
191
186
self .id , cmd , stdout = stdout , stderr = stderr , stdin = stdin , tty = tty ,
192
187
privileged = privileged , user = user , environment = environment ,
193
- workdir = workdir , use_config_proxy = use_config_proxy ,
188
+ workdir = workdir ,
194
189
)
195
190
exec_output = self .client .api .exec_start (
196
191
resp ['Id' ], detach = detach , tty = tty , stream = stream , socket = socket ,
@@ -682,6 +677,7 @@ def run(self, image, command=None, stdout=True, stderr=False,
682
677
For example:
683
678
``{"Name": "on-failure", "MaximumRetryCount": 5}``
684
679
680
+ runtime (str): Runtime to use with this container.
685
681
security_opt (:py:class:`list`): A list of string values to
686
682
customize labels for MLS systems, such as SELinux.
687
683
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,
713
709
tty (bool): Allocate a pseudo-TTY.
714
710
ulimits (:py:class:`list`): Ulimits to set inside the container,
715
711
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.
716
716
user (str or int): Username or UID to run commands as inside the
717
717
container.
718
718
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,
737
737
volumes_from (:py:class:`list`): List of container names or IDs to
738
738
get volumes from.
739
739
working_dir (str): Path to the working directory.
740
- runtime (str): Runtime to use with this container.
741
740
742
741
Returns:
743
742
The container logs, either ``STDOUT``, ``STDERR``, or both,
@@ -952,6 +951,7 @@ def prune(self, filters=None):
952
951
'stdin_open' ,
953
952
'stop_signal' ,
954
953
'tty' ,
954
+ 'use_config_proxy' ,
955
955
'user' ,
956
956
'volume_driver' ,
957
957
'working_dir' ,
0 commit comments