Why the “none” image appears in Docker and how can we avoid it

后端 未结 5 1959
攒了一身酷
攒了一身酷 2020-12-08 05:14

When I run the docker-compose build command to rebuild an image in Docker because I had changed something in Dockerfile, sometimes I get \"none\" image tags. Ho

5条回答
  •  醉话见心
    2020-12-08 05:28

    There is little to add based on what @tgogos said except that it needs more upvoting.

    You can check image sizes of dangling and non-dangling images here:

    docker system df -v
    

    Don't be bugged by intermediate images. This way you oversee that the build process has been made more efficient by keeping intermediate images for each line of a Dockerfile, i.e. such a line can be skipped during the build process if no change occurred.

提交回复
热议问题