Hi, I have executed the commands 'docker exec -it origin bash' and then the 'oc login' command in order to login with the user developer, which also has the cluster-admin role. Then, I have executed the commands 'oadm prune images --confirm', 'oadm prune builds --confirm' and 'oadm prune deployments --confirm'. However, it didn't has any effect on my hard disk space.
I'm afraid that my local OpenShift Origin installation has some problems/errors for some reason, which is the reason why it is taking up all my hard disk space. In this case, is it ok to just delete these paths manually? - /var/lib/origin - /var/lib/docke 2017-10-28 9:58 GMT+02:00 Louis Santillan <[email protected]>: > To run `oc adm prune` (formerly `oadm prune`) you need a real user (not an > service account, like `system:admin`) with `cluster-admin` or > `system:image-pruner` permission [0]. > > > [0] https://docs.openshift.com/container-platform/3.6/ > admin_guide/pruning_resources.html#pruning-images > > ___________________________________________________ > > LOUIS P. SANTILLAN > > SENIOR CONSULTANT, OPENSHIFT, MIDDLEWARE & DEVOPS > > Red Hat Consulting, NA US WEST <https://www.redhat.com/> > > [email protected] M: 3236334854 > <https://red.ht/sig> > TRIED. TESTED. TRUSTED. <https://redhat.com/trusted> > > On Sat, Oct 28, 2017 at 12:41 AM, Tien Hung Nguyen < > [email protected]> wrote: > >> I have checked the memory in the PATH /mnt/var/lib/origin path and it >> says I'm using almost 10GBs there although I have deleted the images with >> the ''docker rmi [imageid]' and using 'oc cluster down' commands. I think >> that's the problem... >> Is it ok to just manually delete the origin folder in the Linux host to >> fix that problem? >> >> Furthermore I have also executed 'docker exec -it origin bash' command >> in order to get to the Host machine of origin and to execute oadm prune >> images command. However, it says that I'm missing a token of an admin >> account to execute it. >> >> I'm using a local OpenShift Origin 3.6 version running on Docker for Mac >> and installed via Terminal 'oc cluster up --host-data-dir >> /Users/username/oc-data' command. The directory /Users/username/oc-data' >> on my computer occupies only 208,8MB. >> >> What's the best way to solve this problem? >> >> >> 2017-10-27 22:21 GMT+02:00 Graham Dumpleton <[email protected]>: >> >>> A question for OP. Are you using options to oc cluster up to persist >>> data when shutting it down? >>> >>> On 27 Oct 2017, at 10:58 pm, Mauricio Améndola <[email protected]> >>> wrote: >>> >>> Hello, >>> The correct way to remove old images is using “oadm prune….”[1] >>> command. I remember that there are two folders that increase a lot due to >>> tmp files. >>> >>> - /var/lib/origin >>> - /var/lib/docker >>> >>> Try oadm prune and give some feedback >>> Regards, >>> >>> [1] https://docs.openshift.com/container-platform/3.6/admin_ >>> guide/pruning_resources.html >>> >>> >>> On Oct 26, 2017, at 6:37 PM, Tien Hung Nguyen <[email protected]> >>> wrote: >>> >>> Hi everybody, >>> >>> I have a problem with my hard drive space. Since I'm using OpenShift >>> locally with Docker, I have the problem that my hard drive space gets full >>> very fast and I can't remove it. I have already run the commands 'oc >>> cluster down' and the 'docker rmi [imageip] commands to deleted unused >>> images but it has no effect. >>> >>> Please, could you tell me how to free up my disk space properly? >>> >>> Thank you! >>> >>> _______________________________________________ >>> users mailing list >>> [email protected] >>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users >>> >>> >>> _______________________________________________ >>> users mailing list >>> [email protected] >>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users >>> >>> >>> >> >> _______________________________________________ >> users mailing list >> [email protected] >> http://lists.openshift.redhat.com/openshiftmm/listinfo/users >> >> >
_______________________________________________ users mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/users
