TECHZEN Zenoss User Community ARCHIVE  

docker image cleanup before upgrade

Subject: docker image cleanup before upgrade
Author: Shane Quinsey
Posted: 2019-01-08 16:48


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
836

#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
ZenN00b
------------------------------


Subject: RE: docker image cleanup before upgrade
Author: Ryan Matte
Posted: 2019-02-21 12:11

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
------------------------------


Subject: RE: docker image cleanup before upgrade
Author: Ryan Matte
Posted: 2019-02-21 12:12

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
------------------------------


< Previous
6.2.1 Windows Server File System Info Missing
  Next
Monitor swap memory on linux servers
>