Multi-stage build target docker
Build only up to a specific stage in a multi-stage Dockerfile
docker build --target builder -t img:builder .
more docker
all 46 commands →
Build with build args
docker build --build-arg APP_VERSION=1.2.3 --build-arg ENV=prod -t myapp:1.2.3 .
Multi-platform build
docker buildx build --platform linux/amd64,linux/arm64 -t myapp:latest --push .
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>