From e28d817c9a776ff35fbea12cdbbf3916199f1af4 Mon Sep 17 00:00:00 2001 From: Antoine Eiche Date: Tue, 25 Jul 2017 10:47:51 +0200 Subject: [PATCH] docker: lowercase image name and tag The docker loading (docker 1.12.6) of an image with uppercase in the name fails with the following message: invalid reference format: repository name must be lowercase --- pkgs/build-support/docker/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/docker/default.nix b/pkgs/build-support/docker/default.nix index 506ef7837a2e..0d02897da74a 100644 --- a/pkgs/build-support/docker/default.nix +++ b/pkgs/build-support/docker/default.nix @@ -409,8 +409,9 @@ rec { }; result = runCommand "docker-image-${baseName}.tar.gz" { buildInputs = [ jshon pigz coreutils findutils ]; - imageName = name; - imageTag = tag; + # Image name and tag must be lowercase + imageName = lib.toLower name; + imageTag = lib.toLower tag; inherit fromImage baseJson; layerClosure = writeReferencesToFile layer; passthru.buildArgs = args;