docker: do not import configuration and manifest from the base image

Fix #27632.
This commit is contained in:
Antoine Eiche 2017-07-25 11:24:49 +02:00 committed by Robin Gloster
parent 9be26f81ca
commit 0a4c43065c

View file

@ -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)