Re: [Dev] Building docker images with PPaaS build scripts
Hi Danushka, Are you having docker images with tag? You can remove those images using the following command. *docker rmi $(docker images | grep "^" | awk "{print $3}")* If you have run docker containers in your machine, there can be containers that are stopped but not removed. You can verify that using *docker ps -a* command and use the following command to remove stopped docker containers. *docker rm `docker ps --no-trunc -aq`* Thank you! On Fri, Oct 2, 2015 at 7:31 AM, Danushka Fernando wrote: > When we run PPaaS build.sh it takes lots of disk space and sometimes > machine tends to go out of disk space. How we can resolve this? > > Thanks & Regards > Danushka Fernando > Senior Software Engineer > WSO2 inc. http://wso2.com/ > Mobile : +94716332729 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Pubudu Gunatilaka* Committer and PMC Member - Apache Stratos Software Engineer WSO2, Inc.: http://wso2.com mobile : +94774079049 <%2B94772207163> ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Building docker images with PPaaS build scripts
Hi Pubudu Here is the response of the *docker images* command REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE wso2/as 5.2.1 8dcdb94efc8d12 hours ago1.294 GB wso2/base-image 4.1.0 a972772832d616 hours ago701.8 MB 4d65ea1cc96417 hours ago701.1 MB 90d819958e2e18 hours ago701.1 MB 56639f5aff0018 hours ago701.1 MB debian 7.7 479215127fa79 months ago84.97 MB But after I build the as image it ate 50G+ my disk space. That's the only thing I did there. Thanks & Regards Danushka Fernando Senior Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, Oct 2, 2015 at 10:00 AM, Pubudu Gunatilaka wrote: > Hi Danushka, > > Are you having docker images with tag? You can remove those images > using the following command. > > *docker rmi $(docker images | grep "^" | awk "{print $3}")* > > If you have run docker containers in your machine, there can be containers > that are stopped but not removed. You can verify that using *docker ps -a* > command and use the following command to remove stopped docker containers. > > *docker rm `docker ps --no-trunc -aq`* > > Thank you! > > > On Fri, Oct 2, 2015 at 7:31 AM, Danushka Fernando > wrote: > >> When we run PPaaS build.sh it takes lots of disk space and sometimes >> machine tends to go out of disk space. How we can resolve this? >> >> Thanks & Regards >> Danushka Fernando >> Senior Software Engineer >> WSO2 inc. http://wso2.com/ >> Mobile : +94716332729 >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Pubudu Gunatilaka* > Committer and PMC Member - Apache Stratos > Software Engineer > WSO2, Inc.: http://wso2.com > mobile : +94774079049 <%2B94772207163> > > ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Building docker images with PPaaS build scripts
Your command freed up around 20G+ thanks. But still 28G is used. Thanks & Regards Danushka Fernando Senior Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, Oct 2, 2015 at 11:04 AM, Danushka Fernando wrote: > Hi Pubudu > Here is the response of the *docker images* command > > REPOSITORY TAG IMAGE ID > CREATED VIRTUAL SIZE > wso2/as 5.2.1 8dcdb94efc8d12 hours > ago1.294 GB > wso2/base-image 4.1.0 a972772832d616 hours > ago701.8 MB > 4d65ea1cc96417 hours > ago701.1 MB > 90d819958e2e18 hours > ago701.1 MB > 56639f5aff0018 hours > ago701.1 MB > debian 7.7 479215127fa79 months > ago84.97 MB > > But after I build the as image it ate 50G+ my disk space. That's the only > thing I did there. > > Thanks & Regards > Danushka Fernando > Senior Software Engineer > WSO2 inc. http://wso2.com/ > Mobile : +94716332729 > > On Fri, Oct 2, 2015 at 10:00 AM, Pubudu Gunatilaka > wrote: > >> Hi Danushka, >> >> Are you having docker images with tag? You can remove those images >> using the following command. >> >> *docker rmi $(docker images | grep "^" | awk "{print $3}")* >> >> If you have run docker containers in your machine, there can be >> containers that are stopped but not removed. You can verify that using >> *docker >> ps -a* command and use the following command to remove stopped docker >> containers. >> >> *docker rm `docker ps --no-trunc -aq`* >> >> Thank you! >> >> >> On Fri, Oct 2, 2015 at 7:31 AM, Danushka Fernando >> wrote: >> >>> When we run PPaaS build.sh it takes lots of disk space and sometimes >>> machine tends to go out of disk space. How we can resolve this? >>> >>> Thanks & Regards >>> Danushka Fernando >>> Senior Software Engineer >>> WSO2 inc. http://wso2.com/ >>> Mobile : +94716332729 >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> *Pubudu Gunatilaka* >> Committer and PMC Member - Apache Stratos >> Software Engineer >> WSO2, Inc.: http://wso2.com >> mobile : +94774079049 <%2B94772207163> >> >> > ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Building docker images with PPaaS build scripts
Hi Danushka, I cannot think of any other solution for this. There are know issues in docker[1] for this. [1] - https://github.com/docker/docker/issues/10021 Thank you! On Fri, Oct 2, 2015 at 11:05 AM, Danushka Fernando wrote: > Your command freed up around 20G+ thanks. But still 28G is used. > > Thanks & Regards > Danushka Fernando > Senior Software Engineer > WSO2 inc. http://wso2.com/ > Mobile : +94716332729 > > On Fri, Oct 2, 2015 at 11:04 AM, Danushka Fernando > wrote: > >> Hi Pubudu >> Here is the response of the *docker images* command >> >> REPOSITORY TAG IMAGE ID >> CREATED VIRTUAL SIZE >> wso2/as 5.2.1 8dcdb94efc8d12 hours >> ago1.294 GB >> wso2/base-image 4.1.0 a972772832d616 hours >> ago701.8 MB >> 4d65ea1cc96417 hours >> ago701.1 MB >> 90d819958e2e18 hours >> ago701.1 MB >> 56639f5aff0018 hours >> ago701.1 MB >> debian 7.7 479215127fa79 months >> ago84.97 MB >> >> But after I build the as image it ate 50G+ my disk space. That's the only >> thing I did there. >> >> Thanks & Regards >> Danushka Fernando >> Senior Software Engineer >> WSO2 inc. http://wso2.com/ >> Mobile : +94716332729 >> >> On Fri, Oct 2, 2015 at 10:00 AM, Pubudu Gunatilaka >> wrote: >> >>> Hi Danushka, >>> >>> Are you having docker images with tag? You can remove those >>> images using the following command. >>> >>> *docker rmi $(docker images | grep "^" | awk "{print $3}")* >>> >>> If you have run docker containers in your machine, there can be >>> containers that are stopped but not removed. You can verify that using >>> *docker >>> ps -a* command and use the following command to remove stopped docker >>> containers. >>> >>> *docker rm `docker ps --no-trunc -aq`* >>> >>> Thank you! >>> >>> >>> On Fri, Oct 2, 2015 at 7:31 AM, Danushka Fernando >>> wrote: >>> When we run PPaaS build.sh it takes lots of disk space and sometimes machine tends to go out of disk space. How we can resolve this? Thanks & Regards Danushka Fernando Senior Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >>> -- >>> *Pubudu Gunatilaka* >>> Committer and PMC Member - Apache Stratos >>> Software Engineer >>> WSO2, Inc.: http://wso2.com >>> mobile : +94774079049 <%2B94772207163> >>> >>> >> > -- *Pubudu Gunatilaka* Committer and PMC Member - Apache Stratos Software Engineer WSO2, Inc.: http://wso2.com mobile : +94774079049 <%2B94772207163> ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Building docker images with PPaaS build scripts
After exporting I deleted the image so it released 12GB. But it,s just 1G image. And if we import it its only taking 1G Thanks & Regards Danushka Fernando Senior Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, Oct 2, 2015 at 12:08 PM, Pubudu Gunatilaka wrote: > Hi Danushka, > > I cannot think of any other solution for this. There are know issues in > docker[1] for this. > > [1] - https://github.com/docker/docker/issues/10021 > > Thank you! > > On Fri, Oct 2, 2015 at 11:05 AM, Danushka Fernando > wrote: > >> Your command freed up around 20G+ thanks. But still 28G is used. >> >> Thanks & Regards >> Danushka Fernando >> Senior Software Engineer >> WSO2 inc. http://wso2.com/ >> Mobile : +94716332729 >> >> On Fri, Oct 2, 2015 at 11:04 AM, Danushka Fernando >> wrote: >> >>> Hi Pubudu >>> Here is the response of the *docker images* command >>> >>> REPOSITORY TAG IMAGE ID >>> CREATED VIRTUAL SIZE >>> wso2/as 5.2.1 8dcdb94efc8d12 hours >>> ago1.294 GB >>> wso2/base-image 4.1.0 a972772832d616 hours >>> ago701.8 MB >>> 4d65ea1cc96417 hours >>> ago701.1 MB >>> 90d819958e2e18 hours >>> ago701.1 MB >>> 56639f5aff0018 hours >>> ago701.1 MB >>> debian 7.7 479215127fa79 months >>> ago84.97 MB >>> >>> But after I build the as image it ate 50G+ my disk space. That's the >>> only thing I did there. >>> >>> Thanks & Regards >>> Danushka Fernando >>> Senior Software Engineer >>> WSO2 inc. http://wso2.com/ >>> Mobile : +94716332729 >>> >>> On Fri, Oct 2, 2015 at 10:00 AM, Pubudu Gunatilaka >>> wrote: >>> Hi Danushka, Are you having docker images with tag? You can remove those images using the following command. *docker rmi $(docker images | grep "^" | awk "{print $3}")* If you have run docker containers in your machine, there can be containers that are stopped but not removed. You can verify that using *docker ps -a* command and use the following command to remove stopped docker containers. *docker rm `docker ps --no-trunc -aq`* Thank you! On Fri, Oct 2, 2015 at 7:31 AM, Danushka Fernando wrote: > When we run PPaaS build.sh it takes lots of disk space and sometimes > machine tends to go out of disk space. How we can resolve this? > > Thanks & Regards > Danushka Fernando > Senior Software Engineer > WSO2 inc. http://wso2.com/ > Mobile : +94716332729 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Pubudu Gunatilaka* Committer and PMC Member - Apache Stratos Software Engineer WSO2, Inc.: http://wso2.com mobile : +94774079049 <%2B94772207163> >>> >> > > > -- > *Pubudu Gunatilaka* > Committer and PMC Member - Apache Stratos > Software Engineer > WSO2, Inc.: http://wso2.com > mobile : +94774079049 <%2B94772207163> > > ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Building docker images with PPaaS build scripts
+1 for what Pubudu has proposed. This is a common problem that happens when working with Docker. It takes considerable amount of disk space when large docker images are imported in to the local docker registry, when there are dangling images [1] and when there are stopped docker containers. Cleaning them should save disk space. [1] http://www.projectatomic.io/blog/2015/07/what-are-docker-none-none-images/ On Fri, Oct 2, 2015 at 12:10 PM, Danushka Fernando wrote: > After exporting I deleted the image so it released 12GB. But it,s just 1G > image. And if we import it its only taking 1G > > Thanks & Regards > Danushka Fernando > Senior Software Engineer > WSO2 inc. http://wso2.com/ > Mobile : +94716332729 > > On Fri, Oct 2, 2015 at 12:08 PM, Pubudu Gunatilaka > wrote: > >> Hi Danushka, >> >> I cannot think of any other solution for this. There are know issues in >> docker[1] for this. >> >> [1] - https://github.com/docker/docker/issues/10021 >> >> Thank you! >> >> On Fri, Oct 2, 2015 at 11:05 AM, Danushka Fernando >> wrote: >> >>> Your command freed up around 20G+ thanks. But still 28G is used. >>> >>> Thanks & Regards >>> Danushka Fernando >>> Senior Software Engineer >>> WSO2 inc. http://wso2.com/ >>> Mobile : +94716332729 >>> >>> On Fri, Oct 2, 2015 at 11:04 AM, Danushka Fernando >>> wrote: >>> Hi Pubudu Here is the response of the *docker images* command REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE wso2/as 5.2.1 8dcdb94efc8d12 hours ago1.294 GB wso2/base-image 4.1.0 a972772832d616 hours ago701.8 MB 4d65ea1cc96417 hours ago701.1 MB 90d819958e2e18 hours ago701.1 MB 56639f5aff0018 hours ago701.1 MB debian 7.7 479215127fa79 months ago84.97 MB But after I build the as image it ate 50G+ my disk space. That's the only thing I did there. Thanks & Regards Danushka Fernando Senior Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, Oct 2, 2015 at 10:00 AM, Pubudu Gunatilaka wrote: > Hi Danushka, > > Are you having docker images with tag? You can remove those > images using the following command. > > *docker rmi $(docker images | grep "^" | awk "{print $3}")* > > If you have run docker containers in your machine, there can be > containers that are stopped but not removed. You can verify that using > *docker > ps -a* command and use the following command to remove stopped docker > containers. > > *docker rm `docker ps --no-trunc -aq`* > > Thank you! > > > On Fri, Oct 2, 2015 at 7:31 AM, Danushka Fernando > wrote: > >> When we run PPaaS build.sh it takes lots of disk space and sometimes >> machine tends to go out of disk space. How we can resolve this? >> >> Thanks & Regards >> Danushka Fernando >> Senior Software Engineer >> WSO2 inc. http://wso2.com/ >> Mobile : +94716332729 >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Pubudu Gunatilaka* > Committer and PMC Member - Apache Stratos > Software Engineer > WSO2, Inc.: http://wso2.com > mobile : +94774079049 <%2B94772207163> > > >>> >> >> >> -- >> *Pubudu Gunatilaka* >> Committer and PMC Member - Apache Stratos >> Software Engineer >> WSO2, Inc.: http://wso2.com >> mobile : +94774079049 <%2B94772207163> >> >> > -- *Imesh Gunaratne* Senior Technical Lead WSO2 Inc: http://wso2.com T: +94 11 214 5345 M: +94 77 374 2057 W: http://imesh.gunaratne.org Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev