Multi-platform build
Build and push multi-arch image using BuildKit
docker buildx build --platform linux/amd64,linux/arm64 -t myapp:latest --push .
More docker commands
-
docker history --no-trunc <image>Show all layers with full commands and sizes
-
docker export <container> | tar -tvf - | head -30Inspect 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 myappLimit container to 512MB RAM and half a CPU core