How does Docker delete the unused layer?

  docker, question

https://hub.docker.com/_/node/

The command I entered directly
docker pull node
Did you download all the layer versions of node?
Because there are 600M meters …
How can I delete it?

  1. If there is already an image layer, it will not be downloaded again.

  2. To use an image, all layers must be downloaded, and the middle layer is also necessary.

  3. Delete what you don’t needdocker images, find no, thendocker rmi <image_id>