In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Before we begin
Why is there a named image like none?
These docker images are called virtual overhang images. When the image is overwritten by a new image, the name of the old image becomes none.
For example, the nginx:latest image already exists in the current docker host, and soon docker hub pushes a new version of the nginx image.
When you docker pull nginx:latest download the image again, the overwritten name of the old version of the image will also change to none.
Another problem to note is the introduction of docker image commands from docker version 1.13.1. The new commands integrate list, rm, build, tag, push, pull and other functions to replace secondary commands such as images, build, rmi, tag, etc.
For compatibility, newer versions of docker can still use these old second-level subcommands, such as docker pull nginx and docker image pull nginx, which have the same functionality.
All we need to do is find and delete these names with invalid none images.
The procedure lists the mirrored docker images-f dangling=true with none characters | head-n 3REPOSITORY TAG IMAGE ID CREATED SIZE d31c5d38836d 3 days ago 1.03GB 10d22b8d83b3 6 days ago 1.03GB# these two commands have the same function as docker image ls -f dangling=true | head-n 3REPOSITORY TAG IMAGE ID CREATED SIZE d31c5d38836d 3 days ago 1.03GB 10d22b8d83b3 6 days ago 1.03GB delete invalid mirror docker image pruneWARNING! This will remove all dangling images.Are you sure you want to continue? [y/N] yDeleted Images:deleted: sha256:d.. Omit.. 3e5c4918ee576d729a4b#... Omit or use the rmi command to delete the docker rmi `docker image ls-f dangling=true-q` command to help docker image
Docker rmi-hFlag shorthand-h has been deprecated, please use-- helpUsage: docker rmi [OPTIONS] IMAGE [IMAGE...] Remove one or more imagesOptions:-f,-force Force removal of the image-- no-prune Do not delete untagged parents Summary
Finally, let's summarize the knowledge points in the article.
Virtual overhang image. When the image is overwritten by a new image, the name of the old version image will become none. You can use the docker image prune command to delete the hanging pot image. For new students, although the functions of new and old commands are the same, it is recommended to master the use of new commands.
Reference article
Doker&k8s Qun [703906133]
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.