From 0a4c43065c5fe4bd599399c02321bb6dd39421af Mon Sep 17 00:00:00 2001 From: Antoine Eiche Date: Tue, 25 Jul 2017 11:24:49 +0200 Subject: [PATCH] docker: do not import configuration and manifest from the base image Fix #27632. --- pkgs/build-support/docker/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/build-support/docker/default.nix b/pkgs/build-support/docker/default.nix index 0d02897da74..0c85941b6a1 100644 --- a/pkgs/build-support/docker/default.nix +++ b/pkgs/build-support/docker/default.nix @@ -435,6 +435,9 @@ rec { if [[ -n "$fromImage" ]]; then echo "Unpacking base image..." tar -C image -xpf "$fromImage" + # Do not import the base image configuration and manifest + rm -f image/*.json + rm -f image/manifest.json if [[ -z "$fromImageName" ]]; then fromImageName=$(jshon -k < image/repositories|head -n1)