Attempt to pull a newer base image before build.
Section: Build Flags and Targets
Always pull newer base image
bash
bash
docker build --pull -t myapp:dev .Explanation
Good for CI pipelines that want refreshed base layers.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Build Flags and Targets