Inspect image layers docker
Show all layers with full commands and sizes
docker history --no-trunc <image>
more docker
all 46 commands →
Export container filesystem
docker export <container> | tar -tvf - | head -30
Diff container from image
docker diff <container>
Commit container to image
docker commit -m 'debug snapshot' <container> debug-snapshot:$(date +%s)
Run with resource limits
docker run --memory=512m --cpus=0.5 --oom-kill-disable=false myapp
Show container resource usage
docker stats --no-stream --format 'table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}'