Debian Bug report logs - #893037
Add support for diffing docker-format containers

Package: src:diffoscope; Maintainer for src:diffoscope is Reproducible builds folks <[email protected]>;

Reported by: Jonathan Dowland <[email protected]>

Date: Thu, 15 Mar 2018 20:27:01 UTC

Severity: wishlist

Tags: moreinfo

Forwarded to https://salsa.debian.org/reproducible-builds/diffoscope/issues/39

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#893037: Add support for diffing docker-format containers
Reply-To: Jonathan Dowland <[email protected]>, [email protected]
Resent-From: Jonathan Dowland <[email protected]>
Resent-To: [email protected]
Resent-CC: Reproducible builds folks <[email protected]>
X-Loop: [email protected]
Resent-Date: Thu, 29 Mar 2018 19:18:02 +0000
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: followup 893037
X-Debian-PR-Package: src:diffoscope
X-Debian-PR-Keywords: moreinfo
References: <[email protected]> <1522254308.3487358.1319209792.3718153B@webmail.messagingengine.com> <[email protected]>
X-Debian-PR-Source: diffoscope
Received: via spool by [email protected] id=B893037.15223509619121
          (code B ref 893037); Thu, 29 Mar 2018 19:18:02 +0000
Received: (at 893037) by bugs.debian.org; 29 Mar 2018 19:16:01 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.1-bugs.debian.org_2005_01_02
	(2015-04-28) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-22.1 required=4.0 tests=BAYES_00,FROMDEVELOPER,
	HAS_BUG_NUMBER,HEADER_FROM_DIFFERENT_DOMAINS,TXREP,T_RP_MATCHES_RCVD,
	URIBL_CNKR autolearn=ham autolearn_force=no
	version=3.4.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 17; hammy, 111; neutral, 33; spammy,
	0. spammytokens: hammytokens:0.000-+--H*UA:1.9.2, 0.000-+--H*u:2017-12-15,
	0.000-+--H*UA:2017-12-15, 0.000-+--H*u:1.9.2, 0.000-+--H*rp:U*debian
Received: from redmars.org ([178.79.130.180] helo=chew.redmars.org)
	by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.89)
	(envelope-from <[email protected]>)
	id 1f1d1l-0002MJ-GB
	for [email protected]; Thu, 29 Mar 2018 19:16:01 +0000
Received: from debian by chew.redmars.org with local (Exim 4.89)
	(envelope-from <[email protected]>)
	id 1f1d1i-0003g5-P7
	for [email protected]; Thu, 29 Mar 2018 20:15:58 +0100
Date: Thu, 29 Mar 2018 20:15:58 +0100
From: Jonathan Dowland <[email protected]>
To: [email protected]
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <1522254308.3487358.1319209792.3718153B@webmail.messagingengine.com>
User-Agent: Mutt/1.9.2 (2017-12-15)
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
⠈⠳⣄⠀⠀⠀⠀

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 08:13:15 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.