From 9b54f73191bece1b5de37621ccd256d2727a0d3f Mon Sep 17 00:00:00 2001 From: Colin Huang Date: Wed, 16 Sep 2015 14:27:04 +0800 Subject: [PATCH] Fix bind volume from host with unicode path Signed-off-by: Colin Huang --- docker/utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/utils/utils.py b/docker/utils/utils.py index a25134196a..8e4adbf23d 100644 --- a/docker/utils/utils.py +++ b/docker/utils/utils.py @@ -249,7 +249,7 @@ def convert_volume_binds(binds): mode = 'rw' result.append('{0}:{1}:{2}'.format( - k, v['bind'], mode + k.encode('utf8'), v['bind'].encode('utf8'), mode )) else: result.append('{0}:{1}:rw'.format(k, v))