Follow

How To Remove Unwanted Docker Images

Applies To

  • Zenoss Resource Manager 5.x

Summary

Docker images that are no longer required consume storage space unless they are removed. This KB describes the process of removing Docker images that are no longer required to make additional storage space available.

Procedure

Perform the following to remove Docker images to free up space:

  1. Become root, or a user with root authority:
    sudo - su
  2. To get a list of Docker images, run the following command:
    docker images
  3. Identify images that are no longer required. Be careful to avoid images that might still be in use.
    To remove unwanted images, run:
    docker rmi [repository]/[image]:[tag]

    For example, if the Zenoss Core images for version 5.0 are no longer needed, note the following items in the record for this image, that appears in the form (using version 5.0.10 as an example):

    REPOSITORY          TAG              IMAGE ID     ……...      [other fields]      
    zenoss/core_5.0        5.0.10           9bf98707e6e7
    
  4. Run the following command to remove this particular image and free up space:
    docker rmi zenoss/core_5.0:5.0.10
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

  • Avatar
    Mark Allen

    I think the article would be more helpful if you could explain how I would know if a docker image is no longer needed or being used. Is there something in the "docker images" output that tells me I no longer need this image.

Powered by Zendesk