You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Thushara Ranawaka <th...@wso2.com> on 2014/09/26 12:19:04 UTC
Failing to delete Docker's images after terminating the container
I created a container and deployed images below.
stratos@Dev-PC:/media/sf_docker_vm/couchdb-cartridge$ docker images
REPOSITORY TAG IMAGE ID
CREATED VIRTUAL
SIZE10.0.2.15:5042/couchdb-cartridge latest
1bbc29d7cf4a 41 hours ago 785.2 MB
couchdb-cartridge latest
1bbc29d7cf4a 41 hours ago 785.2
MB192.168.57.30:5042/couchdb-cartridge latest
1bbc29d7cf4a 41 hours ago 785.2
MB192.168.57.30:5042/tomcat-cartridge latest
a25a79ecc37f 3 weeks ago 463.4 MB
tomcat-cartridge latest
a25a79ecc37f 3 weeks ago 463.4
MB192.168.57.30:5042/mysql-cartridge latest
ab1dac84c735 3 weeks ago 802 MB
mysql-cartridge latest
ab1dac84c735 3 weeks ago 802
MB192.168.57.30:5042/php-cartridge latest
809d2a1ebaf0 3 weeks ago 668.3 MB
php-cartridge latest
809d2a1ebaf0 3 weeks ago 668.3 MB
docker-registry latest
a158e64ae76a 5 weeks ago 596.2 MB
docker-busybox latest
2eb418e07fd5 5 weeks ago 4.964
MB10.0.2.15:5042/docker-busybox latest
2eb418e07fd5 5 weeks ago 4.964 MB
ubuntu 12.04
822a01ae9a15 6 weeks ago 108.1 MB
I wanted to remove 1bbc29d7cf4a image and it wan't let me to delete it
saying:
stratos@Dev-PC:/media/sf_docker_vm/couchdb-cartridge$ docker rmi 1bbc29d7cf4a
Error: Conflict, cannot delete image 1bbc29d7cf4a because it is tagged
in multiple repositories
2014/09/26 12:38:50 Error: failed to remove one or more images
Some how i follow this question
<http://stackoverflow.com/questions/21398087/how-to-delete-dockers-images>[2]
and
still Im getting above error. Bellow are the steps that I follow.
docker ps
docker stop <containerid>
docker rm <containerid>
docker rmi <imageid>
can someone help me to delete this images?
[1]-
http://stackoverflow.com/questions/26054391/failing-to-delete-dockers-images-after-terminating-the-container
[2]-http://stackoverflow.com/questions/21398087/how-to-delete-dockers-images
--
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; <http://www.wso2.com>
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusharak@wso2.com <th...@wso2.com>*
Re: Failing to delete Docker's images after terminating the container
Posted by Sajith Kariyawasam <sa...@wso2.com>.
Hi Thushara,
You can use -f option [1]
[1] https://github.com/docker/docker/issues/1926
On Fri, Sep 26, 2014 at 3:49 PM, Thushara Ranawaka <th...@wso2.com>
wrote:
> I created a container and deployed images below.
>
> stratos@Dev-PC:/media/sf_docker_vm/couchdb-cartridge$ docker images
> REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE10.0.2.15:5042/couchdb-cartridge latest 1bbc29d7cf4a 41 hours ago 785.2 MB
> couchdb-cartridge latest 1bbc29d7cf4a 41 hours ago 785.2 MB192.168.57.30:5042/couchdb-cartridge latest 1bbc29d7cf4a 41 hours ago 785.2 MB192.168.57.30:5042/tomcat-cartridge latest a25a79ecc37f 3 weeks ago 463.4 MB
> tomcat-cartridge latest a25a79ecc37f 3 weeks ago 463.4 MB192.168.57.30:5042/mysql-cartridge latest ab1dac84c735 3 weeks ago 802 MB
> mysql-cartridge latest ab1dac84c735 3 weeks ago 802 MB192.168.57.30:5042/php-cartridge latest 809d2a1ebaf0 3 weeks ago 668.3 MB
> php-cartridge latest 809d2a1ebaf0 3 weeks ago 668.3 MB
> docker-registry latest a158e64ae76a 5 weeks ago 596.2 MB
> docker-busybox latest 2eb418e07fd5 5 weeks ago 4.964 MB10.0.2.15:5042/docker-busybox latest 2eb418e07fd5 5 weeks ago 4.964 MB
> ubuntu 12.04 822a01ae9a15 6 weeks ago 108.1 MB
>
> I wanted to remove 1bbc29d7cf4a image and it wan't let me to delete it
> saying:
>
> stratos@Dev-PC:/media/sf_docker_vm/couchdb-cartridge$ docker rmi 1bbc29d7cf4a
> Error: Conflict, cannot delete image 1bbc29d7cf4a because it is tagged in multiple repositories
> 2014/09/26 12:38:50 Error: failed to remove one or more images
>
> Some how i follow this question
> <http://stackoverflow.com/questions/21398087/how-to-delete-dockers-images>[2] and
> still Im getting above error. Bellow are the steps that I follow.
>
> docker ps
> docker stop <containerid>
> docker rm <containerid>
> docker rmi <imageid>
>
> can someone help me to delete this images?
> [1]-
> http://stackoverflow.com/questions/26054391/failing-to-delete-dockers-images-after-terminating-the-container
> [2]-
> http://stackoverflow.com/questions/21398087/how-to-delete-dockers-images
> --
> Thushara Kasun Ranawaka
> Software Engineer
> WSO2 Inc.; <http://www.wso2.com>
> lean.enterprise.middleware
> Mobile : *+94 (0) 773438949 <%2B94%20%280%29%20773438949>*
> *thusharak@wso2.com <th...@wso2.com>*
>
--
*Sajith Kariyawasam*
*Committer and PMC member, Apache Stratos,WSO2 Inc., http://wso2.com
<http://wso2.com>AMIE (SL)Mobile: +94772269575*
Re: Failing to delete Docker's images after terminating the container
Posted by Manula Chathurika Thantriwatte <ma...@wso2.com>.
Hi Thushara,
You have to subscribe to that google group. Then only you can post mail to
it.
Thanks !
On Fri, Sep 26, 2014 at 4:37 PM, Thushara Ranawaka <th...@wso2.com>
wrote:
> Hi Sajith,
> Will try this. Just regenerated the earlier vm snapshot, im sure this
> error will occur again.
>
> Manula,
>
> Hello thusharak@wso2.com,
>
> We're writing to let you know that the group you tried to contact
> (docker-dev) may not exist, or you may not have permission to post messages
> to the group. A few more details on why you weren't able to post:
>
> bad luck :(
>
> Thanks,
>
> On Fri, Sep 26, 2014 at 4:21 PM, Manula Chathurika Thantriwatte <
> manulac@wso2.com> wrote:
>
>> Hi Thushara,
>>
>> You can remove all stop containers by using the command "sudo docker rm
>> $(sudo docker ps -a -q)" and all the images by "sudo docker rmi $(sudo
>> docker images -q)". But if you want to keep the containers that is not the
>> command. When I google it I'm unable to find the workaround for your
>> problem. I think better to send this mail to docker dev list [1]. They will
>> definitely gives the solution.
>>
>> [1] docker-dev@googlegroups.com
>>
>> Thanks !
>>
>> On Fri, Sep 26, 2014 at 3:49 PM, Thushara Ranawaka <th...@wso2.com>
>> wrote:
>>
>>> I created a container and deployed images below.
>>>
>>> stratos@Dev-PC:/media/sf_docker_vm/couchdb-cartridge$ docker images
>>> REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE10.0.2.15:5042/couchdb-cartridge latest 1bbc29d7cf4a 41 hours ago 785.2 MB
>>> couchdb-cartridge latest 1bbc29d7cf4a 41 hours ago 785.2 MB192.168.57.30:5042/couchdb-cartridge latest 1bbc29d7cf4a 41 hours ago 785.2 MB192.168.57.30:5042/tomcat-cartridge latest a25a79ecc37f 3 weeks ago 463.4 MB
>>> tomcat-cartridge latest a25a79ecc37f 3 weeks ago 463.4 MB192.168.57.30:5042/mysql-cartridge latest ab1dac84c735 3 weeks ago 802 MB
>>> mysql-cartridge latest ab1dac84c735 3 weeks ago 802 MB192.168.57.30:5042/php-cartridge latest 809d2a1ebaf0 3 weeks ago 668.3 MB
>>> php-cartridge latest 809d2a1ebaf0 3 weeks ago 668.3 MB
>>> docker-registry latest a158e64ae76a 5 weeks ago 596.2 MB
>>> docker-busybox latest 2eb418e07fd5 5 weeks ago 4.964 MB10.0.2.15:5042/docker-busybox latest 2eb418e07fd5 5 weeks ago 4.964 MB
>>> ubuntu 12.04 822a01ae9a15 6 weeks ago 108.1 MB
>>>
>>> I wanted to remove 1bbc29d7cf4a image and it wan't let me to delete it
>>> saying:
>>>
>>> stratos@Dev-PC:/media/sf_docker_vm/couchdb-cartridge$ docker rmi 1bbc29d7cf4a
>>> Error: Conflict, cannot delete image 1bbc29d7cf4a because it is tagged in multiple repositories
>>> 2014/09/26 12:38:50 Error: failed to remove one or more images
>>>
>>> Some how i follow this question
>>> <http://stackoverflow.com/questions/21398087/how-to-delete-dockers-images>[2] and
>>> still Im getting above error. Bellow are the steps that I follow.
>>>
>>> docker ps
>>> docker stop <containerid>
>>> docker rm <containerid>
>>> docker rmi <imageid>
>>>
>>> can someone help me to delete this images?
>>> [1]-
>>> http://stackoverflow.com/questions/26054391/failing-to-delete-dockers-images-after-terminating-the-container
>>> [2]-
>>> http://stackoverflow.com/questions/21398087/how-to-delete-dockers-images
>>> --
>>> Thushara Kasun Ranawaka
>>> Software Engineer
>>> WSO2 Inc.; <http://www.wso2.com>
>>> lean.enterprise.middleware
>>> Mobile : *+94 (0) 773438949 <%2B94%20%280%29%20773438949>*
>>> *thusharak@wso2.com <th...@wso2.com>*
>>>
>>
>>
>>
>> --
>> Regards,
>> Manula Chathurika Thantriwatte
>> Software Engineer
>> WSO2 Inc. : http://wso2.com
>> lean . enterprise . middleware
>>
>> email : manulac@wso2.com / manula@apache.org
>> phone : +94 772492511
>> blog : http://manulachathurika.blogspot.com/
>>
>>
>>
>>
>
>
> --
> Thushara Kasun Ranawaka
> Software Engineer
> WSO2 Inc.; <http://www.wso2.com>
> lean.enterprise.middleware
> Mobile : *+94 (0) 773438949 <%2B94%20%280%29%20773438949>*
> *thusharak@wso2.com <th...@wso2.com>*
>
--
Regards,
Manula Chathurika Thantriwatte
Software Engineer
WSO2 Inc. : http://wso2.com
lean . enterprise . middleware
email : manulac@wso2.com / manula@apache.org
phone : +94 772492511
blog : http://manulachathurika.blogspot.com/
Re: Failing to delete Docker's images after terminating the container
Posted by Thushara Ranawaka <th...@wso2.com>.
Hi Sajith,
Will try this. Just regenerated the earlier vm snapshot, im sure this error
will occur again.
Manula,
Hello thusharak@wso2.com,
We're writing to let you know that the group you tried to contact
(docker-dev) may not exist, or you may not have permission to post messages
to the group. A few more details on why you weren't able to post:
bad luck :(
Thanks,
On Fri, Sep 26, 2014 at 4:21 PM, Manula Chathurika Thantriwatte <
manulac@wso2.com> wrote:
> Hi Thushara,
>
> You can remove all stop containers by using the command "sudo docker rm
> $(sudo docker ps -a -q)" and all the images by "sudo docker rmi $(sudo
> docker images -q)". But if you want to keep the containers that is not the
> command. When I google it I'm unable to find the workaround for your
> problem. I think better to send this mail to docker dev list [1]. They will
> definitely gives the solution.
>
> [1] docker-dev@googlegroups.com
>
> Thanks !
>
> On Fri, Sep 26, 2014 at 3:49 PM, Thushara Ranawaka <th...@wso2.com>
> wrote:
>
>> I created a container and deployed images below.
>>
>> stratos@Dev-PC:/media/sf_docker_vm/couchdb-cartridge$ docker images
>> REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE10.0.2.15:5042/couchdb-cartridge latest 1bbc29d7cf4a 41 hours ago 785.2 MB
>> couchdb-cartridge latest 1bbc29d7cf4a 41 hours ago 785.2 MB192.168.57.30:5042/couchdb-cartridge latest 1bbc29d7cf4a 41 hours ago 785.2 MB192.168.57.30:5042/tomcat-cartridge latest a25a79ecc37f 3 weeks ago 463.4 MB
>> tomcat-cartridge latest a25a79ecc37f 3 weeks ago 463.4 MB192.168.57.30:5042/mysql-cartridge latest ab1dac84c735 3 weeks ago 802 MB
>> mysql-cartridge latest ab1dac84c735 3 weeks ago 802 MB192.168.57.30:5042/php-cartridge latest 809d2a1ebaf0 3 weeks ago 668.3 MB
>> php-cartridge latest 809d2a1ebaf0 3 weeks ago 668.3 MB
>> docker-registry latest a158e64ae76a 5 weeks ago 596.2 MB
>> docker-busybox latest 2eb418e07fd5 5 weeks ago 4.964 MB10.0.2.15:5042/docker-busybox latest 2eb418e07fd5 5 weeks ago 4.964 MB
>> ubuntu 12.04 822a01ae9a15 6 weeks ago 108.1 MB
>>
>> I wanted to remove 1bbc29d7cf4a image and it wan't let me to delete it
>> saying:
>>
>> stratos@Dev-PC:/media/sf_docker_vm/couchdb-cartridge$ docker rmi 1bbc29d7cf4a
>> Error: Conflict, cannot delete image 1bbc29d7cf4a because it is tagged in multiple repositories
>> 2014/09/26 12:38:50 Error: failed to remove one or more images
>>
>> Some how i follow this question
>> <http://stackoverflow.com/questions/21398087/how-to-delete-dockers-images>[2] and
>> still Im getting above error. Bellow are the steps that I follow.
>>
>> docker ps
>> docker stop <containerid>
>> docker rm <containerid>
>> docker rmi <imageid>
>>
>> can someone help me to delete this images?
>> [1]-
>> http://stackoverflow.com/questions/26054391/failing-to-delete-dockers-images-after-terminating-the-container
>> [2]-
>> http://stackoverflow.com/questions/21398087/how-to-delete-dockers-images
>> --
>> Thushara Kasun Ranawaka
>> Software Engineer
>> WSO2 Inc.; <http://www.wso2.com>
>> lean.enterprise.middleware
>> Mobile : *+94 (0) 773438949 <%2B94%20%280%29%20773438949>*
>> *thusharak@wso2.com <th...@wso2.com>*
>>
>
>
>
> --
> Regards,
> Manula Chathurika Thantriwatte
> Software Engineer
> WSO2 Inc. : http://wso2.com
> lean . enterprise . middleware
>
> email : manulac@wso2.com / manula@apache.org
> phone : +94 772492511
> blog : http://manulachathurika.blogspot.com/
>
>
>
>
--
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; <http://www.wso2.com>
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusharak@wso2.com <th...@wso2.com>*
Re: Failing to delete Docker's images after terminating the container
Posted by Manula Chathurika Thantriwatte <ma...@wso2.com>.
Hi Thushara,
You can remove all stop containers by using the command "sudo docker rm
$(sudo docker ps -a -q)" and all the images by "sudo docker rmi $(sudo
docker images -q)". But if you want to keep the containers that is not the
command. When I google it I'm unable to find the workaround for your
problem. I think better to send this mail to docker dev list [1]. They will
definitely gives the solution.
[1] docker-dev@googlegroups.com
Thanks !
On Fri, Sep 26, 2014 at 3:49 PM, Thushara Ranawaka <th...@wso2.com>
wrote:
> I created a container and deployed images below.
>
> stratos@Dev-PC:/media/sf_docker_vm/couchdb-cartridge$ docker images
> REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE10.0.2.15:5042/couchdb-cartridge latest 1bbc29d7cf4a 41 hours ago 785.2 MB
> couchdb-cartridge latest 1bbc29d7cf4a 41 hours ago 785.2 MB192.168.57.30:5042/couchdb-cartridge latest 1bbc29d7cf4a 41 hours ago 785.2 MB192.168.57.30:5042/tomcat-cartridge latest a25a79ecc37f 3 weeks ago 463.4 MB
> tomcat-cartridge latest a25a79ecc37f 3 weeks ago 463.4 MB192.168.57.30:5042/mysql-cartridge latest ab1dac84c735 3 weeks ago 802 MB
> mysql-cartridge latest ab1dac84c735 3 weeks ago 802 MB192.168.57.30:5042/php-cartridge latest 809d2a1ebaf0 3 weeks ago 668.3 MB
> php-cartridge latest 809d2a1ebaf0 3 weeks ago 668.3 MB
> docker-registry latest a158e64ae76a 5 weeks ago 596.2 MB
> docker-busybox latest 2eb418e07fd5 5 weeks ago 4.964 MB10.0.2.15:5042/docker-busybox latest 2eb418e07fd5 5 weeks ago 4.964 MB
> ubuntu 12.04 822a01ae9a15 6 weeks ago 108.1 MB
>
> I wanted to remove 1bbc29d7cf4a image and it wan't let me to delete it
> saying:
>
> stratos@Dev-PC:/media/sf_docker_vm/couchdb-cartridge$ docker rmi 1bbc29d7cf4a
> Error: Conflict, cannot delete image 1bbc29d7cf4a because it is tagged in multiple repositories
> 2014/09/26 12:38:50 Error: failed to remove one or more images
>
> Some how i follow this question
> <http://stackoverflow.com/questions/21398087/how-to-delete-dockers-images>[2] and
> still Im getting above error. Bellow are the steps that I follow.
>
> docker ps
> docker stop <containerid>
> docker rm <containerid>
> docker rmi <imageid>
>
> can someone help me to delete this images?
> [1]-
> http://stackoverflow.com/questions/26054391/failing-to-delete-dockers-images-after-terminating-the-container
> [2]-
> http://stackoverflow.com/questions/21398087/how-to-delete-dockers-images
> --
> Thushara Kasun Ranawaka
> Software Engineer
> WSO2 Inc.; <http://www.wso2.com>
> lean.enterprise.middleware
> Mobile : *+94 (0) 773438949 <%2B94%20%280%29%20773438949>*
> *thusharak@wso2.com <th...@wso2.com>*
>
--
Regards,
Manula Chathurika Thantriwatte
Software Engineer
WSO2 Inc. : http://wso2.com
lean . enterprise . middleware
email : manulac@wso2.com / manula@apache.org
phone : +94 772492511
blog : http://manulachathurika.blogspot.com/