Configuration & Administration

Expand all | Collapse all

docker image cleanup before upgrade

  • 1.  docker image cleanup before upgrade

    Posted 01-08-2019 03:48 PM
    Edited by Shane Quinsey 01-08-2019 03:50 PM

    Hi there. We're about to go and upgrade to RMv6.2 but I wanted to clean up our server beforehand.
    Have reviewed How To Remove Unwanted Docker Images however how to you know/confirm the older resmgr_5.x are not being referenced and ok to remove?

    A quick check shows we have alot of older images for resmgr:

    #docker images | grep resmgr | wc -l

    #docker images | grep resmgr | grep latest​
    resmgr_6.1 latest 371c6daa15ab 5 days ago 3.06GB
    resmgr_5.2 latest 06db1ec147de 18 months ago 1.68GB
    resmgr_5.1 latest 129f598f183c 2 years ago 2.18GB

    [root@lpptzencc01 ~]# serviced volume status
    Status for volume /opt/serviced/var/volumes:

    Driver: devicemapper
    Driver Type: direct-lvm
    Volume Path: /opt/serviced/var/volumes

    Thin Pool
    Logical Volume: serviced-serviced--pool
    Metadata (total/used/avail): 208 MiB / 17.91 MiB (8.6%) / 190.1 MiB (91%)
    Data (total/used/avail): 194.8 GiB / 33.94 GiB (17%) / 160.9 GiB (83%)

    6tbl4izbt1r84rkia29qtdui Application Data
    Volume Mount Point: /opt/serviced/var/volumes/6tbl4izbt1r84rkia29qtdui
    Filesystem (total/used/avail): 99.99 GiB / 31.91 GiB (32%) / 68.08 GiB (68%)
    Virtual device size: 100 GiB

    [root@lpptzencc01 ~]# serviced snapshot list -t
    no snapshots found
    [root@lpptzencc01 ~]

    Thanks in advance.

    Shane, Australia

  • 2.  RE: docker image cleanup before upgrade

    Posted 02-21-2019 11:11 AM
    If you're running Resource Manager 6 then it's guaranteed that the old 5.x images are no longer being referenced.  Docker images are stored as layers with deltas between them to conserve space.  Generally only the most recent version of an image is going to be the one is use with the layers beneath it being old data which can be removed.

    Ryan Matte

  • 3.  RE: docker image cleanup before upgrade

    Posted 02-21-2019 11:12 AM
    Just to add, if you're really concerned you can take a backup in Control Center beforehand which will contain all the images and can be restored if necessary.

    Ryan Matte