Build for several platforms
Builds and pushes a multi-arch image with BuildKit
docker buildx build --platform linux/amd64,linux/arm64 -t myapp:latest --push .
More docker commands
-
docker history --no-trunc <image>Shows all layers with full commands and sizes
-
docker export <container> | tar -tvf - | head -30Streams the container filesystem as tar so you can look inside
-
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)Saves the filesystem of a running container as an image
-
docker run --memory=512m --cpus=0.5 --oom-kill-disable=false myappLimits the container to 512MB of RAM and half a CPU core