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

后端 未结 4 1891
南旧
南旧 2021-01-18 04:31

Does docker build --no-cache refresh updated remote base images or not? Documentation does not seem to specify.

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-18 05:07

    docker build --no-cache will rebuild your whole image without reusing cached layers but it will not pull the newest base image from the remote repository. It will just use your local stored image.

提交回复
热议问题