Multi-platform build docker
Build and push multi-arch image using BuildKit
docker buildx build --platform linux/amd64,linux/arm64 -t myapp:latest --push .
more docker
all 46 commands →
Inspect image layers
docker history --no-trunc <image>
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