{"id":15447730,"url":"https://github.com/moul/docker-diff","last_synced_at":"2025-07-10T08:37:09.917Z","repository":{"id":49800735,"uuid":"51152042","full_name":"moul/docker-diff","owner":"moul","description":":whale: Compare Docker images","archived":false,"fork":false,"pushed_at":"2019-06-06T13:15:53.000Z","size":852,"stargazers_count":156,"open_issues_count":4,"forks_count":24,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-14T00:32:24.902Z","etag":null,"topics":["diff","docker"],"latest_commit_sha":null,"homepage":"https://manfred.life/docker-diff","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-05T14:43:29.000Z","updated_at":"2025-03-01T11:37:44.000Z","dependencies_parsed_at":"2022-09-14T11:51:56.870Z","dependency_job_id":null,"html_url":"https://github.com/moul/docker-diff","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/moul/docker-diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moul%2Fdocker-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moul%2Fdocker-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moul%2Fdocker-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moul%2Fdocker-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moul","download_url":"https://codeload.github.com/moul/docker-diff/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moul%2Fdocker-diff/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262614458,"owners_count":23337277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["diff","docker"],"created_at":"2024-10-01T20:14:01.341Z","updated_at":"2025-06-29T15:03:44.867Z","avatar_url":"https://github.com/moul.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-diff\n:whale: Compare Docker images\n\n## Installation\n\n### On macOS via Homebrew\n\n`brew install moul/moul/docker-diff`\n\nOr `brew tap moul/moul` and then `brew install docker-diff`\n\n### Linux\n\n#### zsh\n\n```bash \nsudo git clone https://github.com/moul/docker-diff /opt/docker-diff \nsudo ln -s /opt/docker-diff/docker-diff /usr/local/bin\necho \"source /opt/docker-diff/docker-diff-completion\" \u003e\u003e ~/.zshrc\nsource ~/.zshrc\n```\n\n## Usage\n\n[See full examples](./examples).\n\n---\n\nComparing changes between [alpine:3.2](https://hub.docker.com/r/library/alpine/) and [alpine:3.3](https://hub.docker.com/r/library/alpine/).\n\n```console\n$ ./docker-diff alpine:3.2 alpine:3.3\n```\n\n```diff\n7,8c7\n\u003c ---s--x--x 9944       bin/bbsuid\n\u003c -rwxr-xr-x 800936     bin/busybox\n---\n\u003e -rwxr-xr-x 809128     bin/busybox\n63d61\n\u003c lrwxrwxrwx 0          bin/rc-status\n82d79\n\u003c -rwxr-xr-x 9872       bin/uniso\n92,94d88\n\u003c drwxr-xr-x 0          etc/acpi/\n\u003c drwxr-xr-x 0          etc/acpi/PWRF/\n\u003c -rwxr-xr-x 19         etc/acpi/PWRF/00000080\n105,106c99,100\n\u003c -rw-r--r-- 45         etc/apk/repositories\n\u003c -rw-r--r-- 12         etc/apk/world\n---\n\u003e -rw-r--r-- 95         etc/apk/repositories\n\u003e -rw-r--r-- 51         etc/apk/world\n108,129d101\n\u003c -rw-r--r-- 328        etc/conf.d/bootmisc\n\u003c -rw-r--r-- 876        etc/conf.d/consolefont\n\u003c -rw-r--r-- 55         etc/conf.d/cron\n\u003c -rw-r--r-- 348        etc/conf.d/devfs\n\u003c -rw-r--r-- 117        etc/conf.d/dmesg\n\u003c -rw-r--r-- 1402       etc/conf.d/fsck\n\u003c -rw-r--r-- 59         etc/conf.d/hostname\n\u003c -rw-r--r-- 857        etc/conf.d/hwclock\n\u003c -rw-r--r-- 911        etc/conf.d/keymaps\n\u003c -rw-r--r-- 105        etc/conf.d/killprocs\n\u003c -rw-r--r-- 14         etc/conf.d/klogd\n\u003c -rw-r--r-- 121        etc/conf.d/localmount\n\u003c -rw-r--r-- 124        etc/conf.d/modloop\n\u003c -rw-r--r-- 898        etc/conf.d/modules\n\u003c -rw-r--r-- 1335       etc/conf.d/netmount\n\u003c -rw-r--r-- 106        etc/conf.d/ntpd\n\u003c -rw-r--r-- 48         etc/conf.d/rdate\n\u003c -rw-r--r-- 357        etc/conf.d/staticroute\n\u003c -rw-r--r-- 16         etc/conf.d/syslog\n\u003c -rw-r--r-- 76         etc/conf.d/tmpfiles\n\u003c -rw-r--r-- 282        etc/conf.d/urandom\n\u003c -rw-r--r-- 40         etc/conf.d/watchdog\n131c103\n\u003c -rw-r--r-- 283        etc/crontabs/root\n---\n\u003e -rw------- 283        etc/crontabs/root\n133c105\n\u003c -rw-r--r-- 810        etc/group\n---\n\u003e -rw-r--r-- 683        etc/group\n137,185c109\n[...]\n```\n\n---\n\nComparing changes between [ubuntu:wily](https://hub.docker.com/r/library/ubuntu/) and [ubuntu-debootstrap:wily](https://hub.docker.com/r/library/ubuntu-debootstrap/).\n\n```console\n$ ./docker-diff ubuntu:wily ubuntu-debootstrap:wily\nUnable to find image 'ubuntu:wily' locally\nwily: Pulling from library/ubuntu\ncde2d46a079b: Pulling fs layer\ne189717d7053: Pulling fs layer\n7147b2632305: Pulling fs layer\nd8a164f81acc: Pulling fs layer\n7147b2632305: Verifying Checksum\n7147b2632305: Download complete\ne189717d7053: Verifying Checksum\ne189717d7053: Download complete\nd8a164f81acc: Verifying Checksum\nd8a164f81acc: Download complete\ncde2d46a079b: Verifying Checksum\ncde2d46a079b: Download complete\ncde2d46a079b: Pull complete\ne189717d7053: Pull complete\n7147b2632305: Pull complete\nd8a164f81acc: Pull complete\nDigest: sha256:f399d4101e8e41196b9bc58a96e63d17e3d5fcef702df2bda05e166dc3b5ac3c\nStatus: Downloaded newer image for ubuntu:wily\nUnable to find image 'ubuntu-debootstrap:wily' locally\nwily: Pulling from library/ubuntu-debootstrap\n15b60992a765: Pulling fs layer\n56590e6e34d5: Pulling fs layer\n56590e6e34d5: Verifying Checksum\n56590e6e34d5: Download complete\n15b60992a765: Verifying Checksum\n15b60992a765: Download complete\n15b60992a765: Pull complete\n56590e6e34d5: Pull complete\nDigest: sha256:0d464ac0c99ecb124f5cc078b2f3db5e33699d030d90c27164af38a721a2b7f2\nStatus: Downloaded newer image for ubuntu-debootstrap:wily\n...\n```\n\n```diff\n13,14c13,14\n\u003c -rwxr-xr-x 101928     bin/df\n\u003c -rwxr-xr-x 118272     bin/dir\n---\n\u003e -rwxr-xr-x 101960     bin/df\n\u003e -rwxr-xr-x 118368     bin/dir\n18c18\n\u003c -rwxr-xr-x 31264      bin/echo\n---\n\u003e -rwxr-xr-x 31296      bin/echo\n27a28\n\u003e -rwxr-xr-x 363680     bin/ip\n33c34\n\u003c -rwxr-xr-x 118272     bin/ls\n---\n\u003e -rwxr-xr-x 118368     bin/ls\n34a36\n\u003e -rwxr-xr-x 474352     bin/machinectl\n42c44\n\u003c -rwxr-xr-x 670304     bin/networkctl\n---\n\u003e -rwxr-xr-x 670296     bin/networkctl\n44a47,48\n\u003e -rwsr-xr-x 70768      bin/ping\n\u003e -rwsr-xr-x 61520      bin/ping6\n46c50\n\u003c -rwxr-xr-x 31360      bin/pwd\n---\n\u003e -rwxr-xr-x 31392      bin/pwd\n50c54\n[...]\n```\n\n[See full examples](./examples).\n\n## Sub-project\n\n* [docker-promote](https://github.com/Wealthforge-Technologies/docker-promote): promote a docker image only if it is different than than the one presently there. ([@Wealthforge-Technologies](https://github.com/Wealthforge-Technologies))\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoul%2Fdocker-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoul%2Fdocker-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoul%2Fdocker-diff/lists"}