Skip to content

Commit

Permalink
Switch to ubuntu, to avoid alpine linux' invalid tar error
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Feb 15, 2016
1 parent 7b2a99c commit 34d308c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-diff
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ container_a=$(docker create "$IMAGE_A" /dontexist)
container_b=$(docker create "$IMAGE_B" /dontexist)
AWK='{printf "%-10s %-10s %-100s\n",$1,$3,$6}'

diff <(docker export "$container_a" | docker run -i --rm alpine tar tvf - | awk "$AWK") <(docker export "$container_b" | docker run -i --rm alpine tar tvf - | awk "$AWK")
diff <(docker export "$container_a" | docker run -i --rm ubuntu tar tvf - | awk "$AWK") <(docker export "$container_b" | docker run -i --rm ubuntu tar tvf - | awk "$AWK")

docker rm -fv "$container_a" "$container_b"

0 comments on commit 34d308c

Please sign in to comment.