git.iko.soy/typeable/nixpkgs
on master help sign in
docker: do not import configuration and manifest from the base image

Fix #27632.

commit0a4c43065c5fe4bd599399c02321bb6dd39421af authorAntoine Eiche <lewo@abesis.fr> dateTue 25 Jul 2017, 11:24 (9 years ago) parent9be26f8
1 file changed+3
pkgs/build-support/docker/default.nix+3
pkgs/build-support/docker/default.nix+3
@@ -435,6 +435,9 @@ rec {
435435 if [[ -n "$fromImage" ]]; then
436436 echo "Unpacking base image..."
437437 tar -C image -xpf "$fromImage"
438+ # Do not import the base image configuration and manifest
439+ rm -f image/*.json
440+ rm -f image/manifest.json
438441
439442 if [[ -z "$fromImageName" ]]; then
440443 fromImageName=$(jshon -k < image/repositories|head -n1)