This repository was archived by the owner on Mar 27, 2024. It is now read-only.
This repository was archived by the owner on Mar 27, 2024. It is now read-only.
diff does not report updated packages #297
Closed
Description
When comparing images using diff, there seem to be a lot of packages missing, specifically those from a "yum upgrade" run.
Expected behavior
I'd expect to see the packages that got upgraded during "yum upgrade":
[...]
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
bind-license noarch 32:9.9.4-73.el7_6 updates 87 k
device-mapper x86_64 7:1.02.149-10.el7_6.3 updates 292 k
device-mapper-libs x86_64 7:1.02.149-10.el7_6.3 updates 320 k
glibc x86_64 2.17-260.el7_6.3 updates 3.7 M
glibc-common x86_64 2.17-260.el7_6.3 updates 12 M
krb5-libs x86_64 1.15.1-37.el7_6 updates 803 k
nss x86_64 3.36.0-7.1.el7_6 updates 835 k
nss-sysinit x86_64 3.36.0-7.1.el7_6 updates 62 k
nss-tools x86_64 3.36.0-7.1.el7_6 updates 515 k
nss-util x86_64 3.36.0-1.1.el7_6 updates 78 k
openldap x86_64 2.4.44-21.el7_6 updates 356 k
systemd x86_64 219-62.el7_6.3 updates 5.1 M
systemd-libs x86_64 219-62.el7_6.3 updates 406 k
tzdata noarch 2018i-1.el7 updates 490 k
Transaction Summary
================================================================================
Upgrade 14 Packages
[...]
Actual behavior
Only package tzdata shows up:
-----RPM-----
Packages found only in centos:7: None
Packages found only in centos:7-upgraded:
NAME VERSION SIZE
-gpg-pubkey f4a80eb5 0
Version differences:
PACKAGE IMAGE1 (centos:7) IMAGE2 (centos:7-upgraded)
-tzdata 2018g, 1.9M 2018i, 1.9M
Information
- container-diff version: 0.14.0
- Operating system: CentOS Linux release 7.6.1810 (Core)
- Docker version: docker-ce 18.09.2
Steps to reproduce the behavior
- Fetch CentOS image
[nscheer@docker ~]$ docker pull centos:7
7: Pulling from library/centos
Digest: sha256:184e5f35598e333bfa7de10d8fb1cebb5ee4df5bc0f970bf2b1e7c7345136426
Status: Image is up to date for centos:7
- Build an upgraded version
docker build -t centos:7-upgraded -f - . <<EOF
FROM centos:7
RUN yum makecache fast && yum -y upgrade && yum clean all
EOF
The upgrade process shows and upgrades the aformentioned packages.
- Run diff
./container-diff-linux-amd64 diff --type=rpm daemon://centos:7 daemon://centos:7-upgraded
- Diff results in the output shown in "Actual behavior"
Metadata
Metadata
Assignees
Labels
No labels