[ Web Proxy ]
URL:
Viewing: https://docs.docker.com/engine/reference/commandline/diff [Back]  [Original]

docker container diff | Docker Docs

What can I help you with?

I'm Gordon, your AI assistant for Docker and documentation questions.

Try asking

Get started with Docker

Docker Hardened Images

MCP Toolkit

Create an org

Was this helpful?

remaining in this thread.

You've reached the maximum of questions per thread. For better answer quality, start a new thread.

Start a new thread
[Go]
Answers are generated based on the documentation.
Home / Reference / CLI reference / docker / docker container / docker container diff

docker container diff

DescriptionInspect changes to files or directories on a container's filesystem
Usagedocker container diff CONTAINER
Aliases
docker diff

Description

List the changed files and directories in a containers filesystem since the container was created. Three different types of change are tracked:

SymbolDescription
AA file or directory was added
DA file or directory was deleted
CA file or directory was changed

You can use the full or shortened container ID or the container name set using docker run --name option.

Examples

Inspect the changes to an nginx container:

$ docker diff 1fdfd1f54c1b

C /dev
C /dev/console
C /dev/core
C /dev/stdout
C /dev/fd
C /dev/ptmx
C /dev/stderr
C /dev/stdin
C /run
A /run/nginx.pid
C /var/lib/nginx/tmp
A /var/lib/nginx/tmp/client_body
A /var/lib/nginx/tmp/fastcgi
A /var/lib/nginx/tmp/proxy
A /var/lib/nginx/tmp/scgi
A /var/lib/nginx/tmp/uwsgi
C /var/log/nginx
A /var/log/nginx/access.log
A /var/log/nginx/error.log
Copyright 2013-2026 Docker Inc. All rights reserved.

Web Proxy Viewer  |  New URL  |  Original Page