From aaf442e85e5946efaa2701abc746de70e1720a2b Mon Sep 17 00:00:00 2001
From: Philip ABBET <philip.abbet@idiap.ch>
Date: Tue, 25 Apr 2017 13:58:36 +0200
Subject: [PATCH] Bugfix; Docker volumes aren't correctly indicated to
 docker-py

---
 beat/core/dock.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/beat/core/dock.py b/beat/core/dock.py
index 4a86266e..d7455ed6 100755
--- a/beat/core/dock.py
+++ b/beat/core/dock.py
@@ -362,6 +362,11 @@ class Host(object):
     if host_args is not None:
       config_args.update(host_args)
 
+    if args.has_key('volumes'):
+      volumes = [ v['bind'] for k, v in args['volumes'].items() ]
+      config_args['binds'] = args['volumes']
+      args['volumes'] = volumes
+
     # see bug: https://github.com/docker/docker-py/issues/1195
     # fix on docker-engine 1.13.0 and superior
     # see changelog: https://github.com/docker/docker/blob/master/CHANGELOG.md
-- 
GitLab