Bug#893037: Add support for diffing docker-format containers
Jonathan Dowland
jmtd at debian.org
Thu Mar 29 19:15:58 UTC 2018
I poked a bit at how docker's overlay2 driver stores the layers and came
up with this temporary hack script
> #!/bin/sh
> set -u
> set -e
>
> if [ $# -lt 2 ]; then
> echo usage: $0 before after
> exit 1
> fi
>
> before="$1"
> after="$2"
>
> bfs=$(docker inspect -f '{{ .GraphDriver.Data.UpperDir }}' "$before")
> afs=$(docker inspect -f '{{ .GraphDriver.Data.UpperDir }}' "$after")
>
> diff -ruN "$bfs" "$afs"
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Jonathan Dowland
⢿⡄⠘⠷⠚⠋⠀ https://jmtd.net
⠈⠳⣄⠀⠀⠀⠀
More information about the Reproducible-builds
mailing list