How to force Docker for a clean build of an image

后端 未结 9 1026
情书的邮戳
情书的邮戳 2021-01-29 17:12

I have build a Docker image from a Docker file using the below command.

$ docker build -t u12_core -f u12_core .

When I am trying to rebuild it

9条回答
  •  星月不相逢
    2021-01-29 17:35

    There's a --no-cache option:

    docker build --no-cache -t u12_core -f u12_core .
    

    In older versions of Docker you needed to pass --no-cache=true, but this is no longer the case.

提交回复
热议问题