LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

docker-diff

Inspect changes to files or directories on a container's filesystem

TLDR

Show filesystem changes in a container
$ docker diff [container_name]
copy
Show changes using container ID
$ docker diff [container_id]
copy

SYNOPSIS

docker diff container

DESCRIPTION

docker diff inspects changes to files or directories on a container's filesystem since the container was created from its base image. The output categorizes each change with a single-character prefix: A for added, C for changed/modified, and D for deleted.This command is useful for understanding what modifications have occurred within a running or stopped container, which helps in debugging, auditing changes, or determining what should be captured in a new image via docker commit. Only changes in the container's writable layer are reported; the underlying image layers remain unchanged.You can reference the container by name or by full/shortened container ID.

OUTPUT FIELDS

A

A file or directory was added.
C
A file or directory was changed (modified content or metadata).
D
A file or directory was deleted.

INSTALL

sudo apt install docker-cli
copy
sudo dnf install docker-cli
copy
sudo pacman -S docker
copy
sudo apk add docker-cli
copy
sudo zypper install docker
copy
brew install docker
copy
nix profile install nixpkgs#docker
copy

CAVEATS

The diff operation examines the entire container filesystem, so it may take time for containers with extensive modifications. No filtering options are available; the full diff is always shown.

HISTORY

docker diff has been available since the early versions of Docker. It is an alias for docker container diff, which is the preferred form in newer Docker CLI versions.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid