Skip to content
Snippets Groups Projects
Commit aaf442e8 authored by Philip ABBET's avatar Philip ABBET
Browse files

Bugfix; Docker volumes aren't correctly indicated to docker-py

parent fff2df46
No related branches found
No related tags found
No related merge requests found
...@@ -362,6 +362,11 @@ class Host(object): ...@@ -362,6 +362,11 @@ class Host(object):
if host_args is not None: if host_args is not None:
config_args.update(host_args) 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 # see bug: https://github.com/docker/docker-py/issues/1195
# fix on docker-engine 1.13.0 and superior # fix on docker-engine 1.13.0 and superior
# see changelog: https://github.com/docker/docker/blob/master/CHANGELOG.md # see changelog: https://github.com/docker/docker/blob/master/CHANGELOG.md
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment