Inspect image layers

Show all layers with full commands and sizes

docker history --no-trunc <image>

tool
docker46 commands
tags
dockerdebug

More docker commands

  • docker export <container> | tar -tvf - | head -30

    Inspect a container's merged filesystem as a tar stream

  • docker diff <container>

    Files added (A), changed (C), or deleted (D) in a running container

  • docker commit -m 'debug snapshot' <container> debug-snapshot:$(date +%s)

    Snapshot a running container's filesystem as an image

  • docker run --memory=512m --cpus=0.5 --oom-kill-disable=false myapp

    Limit container to 512MB RAM and half a CPU core

  • docker stats --no-stream --format 'table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}'

    One-shot CPU and memory snapshot for all containers

all 46 docker commands