GoogleContainerTools / container-diff

container-diff: Diff your Docker containers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

container-diff missed an apt diff

donmccasland opened this issue · comments

donmccasland@rocinante:~/Repos/base-images-docker$ container-diff diff --type=apt daemon://bazel/ubuntu:ubuntu_18_0_4 remote://gcr.io/gcp-runtimes/ubuntu_18_0_4:latest

-----Apt-----

Packages found only in bazel/ubuntu:ubuntu_18_0_4: None

Packages found only in gcr.io/gcp-runtimes/ubuntu_18_0_4:latest: None

Version differences:
PACKAGE IMAGE1 (bazel/ubuntu:ubuntu_18_0_4) IMAGE2 (gcr.io/gcp-runtimes/ubuntu_18_0_4:latest)
-bash 4.4.18-2ubuntu1.1, 1.6M 4.4.18-2ubuntu1, 1.6M
-curl 7.58.0-2ubuntu3.7, 386K 7.58.0-2ubuntu3.6, 386K
-debconf 1.5.66ubuntu1, 544K 1.5.66, 545K
-gcc-8-base 8.3.0-6ubuntu118.04, 113K 8.2.0-1ubuntu218.04, 109K
-libcurl4 7.58.0-2ubuntu3.7, 626K 7.58.0-2ubuntu3.6, 626K
-libgcc1 1:8.3.0-6ubuntu118.04, 112K 1:8.2.0-1ubuntu218.04, 112K
-libgnutls30 3.5.18-1ubuntu1.1, 1.7M 3.5.18-1ubuntu1, 1.7M
-libldap-2.4-2 2.4.45 dfsg-1ubuntu1.2, 498K 2.4.45 dfsg-1ubuntu1.1, 498K
-libldap-common 2.4.45 dfsg-1ubuntu1.2, 97K 2.4.45 dfsg-1ubuntu1.1, 97K
-libseccomp2 2.4.1-0ubuntu0.18.04.2, 302K 2.3.1-2.1ubuntu4.1, 301K
-libstdc++6 8.3.0-6ubuntu118.04, 2M 8.2.0-1ubuntu218.04, 2M
-libsystemd0 237-3ubuntu10.21, 648K 237-3ubuntu10.19, 647K
-libudev1 237-3ubuntu10.21, 227K 237-3ubuntu10.19, 226K
-login 1:4.5-1ubuntu2, 1.2M 1:4.5-1ubuntu1, 1.2M
-passwd 1:4.5-1ubuntu2, 2.5M 1:4.5-1ubuntu1, 2.5M

donmccasland@rocinante:~/Repos/base-images-docker$ docker run -it bazel/ubuntu:ubuntu_18_0_4 /bin/bash
root@471f00ae82b1:/# dpkg --list | grep db5.3
ii libdb5.3:amd64 5.3.28-13.1ubuntu1.1 amd64 Berkeley v5.3 Database Libraries [runtime]
root@471f00ae82b1:/# exit

donmccasland@rocinante:~/Repos/base-images-docker$ docker run -it gcr.io/gcp-runtimes/ubuntu_18_0_4:latest /bin/bash
Unable to find image 'gcr.io/gcp-runtimes/ubuntu_18_0_4:latest' locally
latest: Pulling from gcp-runtimes/ubuntu_18_0_4
45ed7396067e: Pull complete
1a1ea611a69a: Pull complete
3c2cba919283: Pull complete
Digest: sha256:c3ddba9ed8941637e9e375392a9a6fa02c9613f03b5d2764ba0fbbdbdb39c3ce
Status: Downloaded newer image for gcr.io/gcp-runtimes/ubuntu_18_0_4:latest

root@8c3b2e7c29e7:/# dpkg --list | grep libdb5.3
ii libdb5.3:amd64 5.3.28-13.1ubuntu1 amd64 Berkeley v5.3 Database Libraries [runtime]

Interesting. When I did a docker pull of gcr.io/gcp-runtimes/ubuntu_18_0_4:latest and looked at dpkg, then I saw no difference between the versions of libdb5.3. This makes me think that container-diff was using the remote version where docker run was not.

Closing as 'not a bug'