dokku / dokku-redis

a redis plugin for dokku
MIT License
253 stars 38 forks source link

Can't destroy <name> #15

Closed ohardy closed 8 years ago

ohardy commented 9 years ago
$ sudo dokku redis:destroy gitlab
 !    WARNING: Potentially Destructive Action
 !    This command will destroy gitlab Redis service.
 !    To proceed, type "gitlab"

> gitlab
-----> Deleting gitlab
       No container exists for gitlab
       Removing data
rm: cannot remove ‘/var/lib/dokku/services/redis/gitlab/data/dump.rdb’: Permission denied

So i removing folder by hand :

$ sudo rm -rf /var/lib/dokku/services/redis/gitlab/

Creating again doesn't work :

$ sudo dokku redis:create gitlab
-----> Starting container
Error response from daemon: Conflict. The name "dokku.redis.gitlab" is already in use by container 5494fe5226db. You have to delete (or rename) that container to be able to reuse that name.
josegonzalez commented 9 years ago

I think you may have manually stopped the container before attempting to destroy it. If so, you're going to have to manually remove the docker container.

ohardy commented 9 years ago

I didn't

josegonzalez commented 9 years ago

Can you replicate this with latest master?

ohardy commented 9 years ago

Yep ;) :

$ sudo dokku redis:create test3
-----> Starting container
       Waiting for container to be ready
=====> Redis container created: test3
       DSN: redis://172.17.0.65:6379/0

$ sudo dokku redis:destroy test3
 !    WARNING: Potentially Destructive Action
 !    This command will destroy test3 Redis service.
 !    To proceed, type "test3"

> test3
-----> Deleting test3
       No container exists for test3
       Removing data
=====> Redis container deleted: test3

$ sudo dokku redis:create test3
-----> Starting container
Error response from daemon: Conflict. The name "dokku.redis.test3" is already in use by container 25b93a98e247. You have to delete (or rename) that container to be able to reuse that name.
josegonzalez commented 9 years ago

Wtf. Can you run that with dokku trace on?

josegonzalez commented 8 years ago

Closing as I'm pretty sure this was fixed.