How to force Docker for a clean build of an image

后端 未结 9 951
情书的邮戳
情书的邮戳 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:30

    GUI-driven approach: Open the docker desktop tool (that usually comes with Docker):

    1. under "Containers / Apps" stop all running instances of that image
    2. under "Images" remove the build image (hover over the box name to get a context menu), eventually also the underlying base image

提交回复
热议问题