Does Docker build –no-cache actually download and refresh the base image

The –no-cache option will rebuild the image without using the local cached layers.

However, the FROM line will reuse the already pulled base image if it exists on the build host (the from line itself may not be cached, but the image it pulls is).

If you want to pull the base image again, you can use the –pull option to the build command. E.g.

docker build --no-cache --pull -t new-image-name:latest .

check more from here