summaryrefslogtreecommitdiff
path: root/docker/api/container.py
diff options
context:
space:
mode:
Diffstat (limited to 'docker/api/container.py')
-rw-r--r--docker/api/container.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/docker/api/container.py b/docker/api/container.py
index ab3b1cf..2a80ff7 100644
--- a/docker/api/container.py
+++ b/docker/api/container.py
@@ -403,6 +403,10 @@ class ContainerApiMixin(object):
if isinstance(volumes, six.string_types):
volumes = [volumes, ]
+ if isinstance(environment, dict):
+ environment = utils.utils.format_environment(environment)
+ environment = self._proxy_configs.inject_proxy_environment(environment)
+
config = self.create_container_config(
image, command, hostname, user, detach, stdin_open, tty,
ports, environment, volumes,