Make sure the build path we pass to docker-py is a binary string

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad 2015-04-30 11:57:46 +01:00
commit 4f366d8355
3 changed files with 32 additions and 2 deletions

View file

@ -462,8 +462,10 @@ class Service(object):
def build(self, no_cache=False):
log.info('Building %s...' % self.name)
path = six.binary_type(self.options['build'])
build_output = self.client.build(
self.options['build'],
path=path,
tag=self.full_name,
stream=True,
rm=True,