docker build --pull -t myapp:latest .

Category: Docker

docker build --pull -t myapp:latest .

Always pull the latest base image before building

Forces a fresh pull of the base image (FROM in Dockerfile) before building.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.