Skip to content

Commit

Permalink
docker: do not import configuration and manifest from the base image
Browse files Browse the repository at this point in the history
Fix #27632.
  • Loading branch information
nlewo authored and globin committed Jul 26, 2017
1 parent 9be26f8 commit 0a4c430
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/build-support/docker/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0a4c430

Please sign in to comment.