Re: Hard Disk is full because of OpenShift Origin

2017-10-31 Thread Sam Padgett
There are some known problems in Docker for Mac where disk usage never decreases that you might be running into: https://github.com/docker/for-mac/issues/371 On Mon, Oct 30, 2017 at 4:06 PM, Graham Dumpleton wrote: > If you don't mind having everything trashed, and aren't

Re: Hard Disk is full because of OpenShift Origin

2017-10-30 Thread Tien Hung Nguyen
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

Re: Hard Disk is full because of OpenShift Origin

2017-10-28 Thread Louis Santillan
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

Re: Hard Disk is full because of OpenShift Origin

2017-10-28 Thread Tien Hung Nguyen
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

Re: Hard Disk is full because of OpenShift Origin

2017-10-27 Thread Graham Dumpleton
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 > wrote: > > Hello, > The correct way to remove old images is using “oadm prune….”[1] command. I > remember that there

Re: Hard Disk is full because of OpenShift Origin

2017-10-27 Thread Mauricio Améndola
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]

Re: Hard Disk is full because of OpenShift Origin

2017-10-27 Thread Graham Dumpleton
What platform are you on? If you are on MacOS X or Windows try the following. Run: docker run --rm -it -v /:/mnt busybox /bin/sh This will give you an interactive shell in busybox, but where /mnt has the Docker VM file system mounted. Then go to: /mnt/var/lib/origin and see how much

Re: Hard Disk is full because of OpenShift Origin

2017-10-26 Thread Tien Hung Nguyen
I have checked the volumes already using the docker command docker volume ls. However, everything seems pretty normal there. Furthermore, I have checked my images with docker images ls. I have found a lot of old images created by OpenShift, which used a lot of GBs on my Hard Disk. That‘s why I

Re: Hard Disk is full because of OpenShift Origin

2017-10-26 Thread Graham Dumpleton
See if you have a lot of docker volumes that haven't been cleaned up properly. docker volume ls Maybe that is hanging onto space. Graham > On 27 Oct 2017, at 8:37 am, Tien Hung Nguyen wrote: > > Hi everybody, > > I have a problem with my hard drive space. Since