diff --git a/imagefactory_plugins/Docker/Docker.py b/imagefactory_plugins/Docker/Docker.py index 16d928d..33edf5a 100644 --- a/imagefactory_plugins/Docker/Docker.py +++ b/imagefactory_plugins/Docker/Docker.py @@ -426,7 +426,7 @@ def _run_guestmount(g): 'type': 'layers' } # Docker wants this config file to be named after its own sha256 sum - image_v2_config_id = hashlib.sha256(json.dumps(image_v2_config)).hexdigest() + image_v2_config_id = hashlib.sha256(json.dumps(image_v2_config).encode('utf-8')).hexdigest() image_v2_manifest = [ { "Config": "%s.json" % (image_v2_config_id), "Layers": [ "%s/layer.tar" % (docker_image_id) ],