jeffutter / dokku-mongodb-plugin

Plugin to setup Mongodb accounts for containers deployed to Dokku
GNU General Public License v2.0
154 stars 52 forks source link

How to reinstall the plugin completely #49

Closed sebastiandeutsch closed 10 years ago

sebastiandeutsch commented 10 years ago

I removed the $DOKKU_ROOT/.mongodb directory and used docker rmi "jeffutter/mongodb:latest" to uninstall the image. The container is stopped. When I want to reinstall with dokku plugins:install I'll get the following error:

dokku plugins:install
Unable to find image 'jeffutter/mongodb' locally
Pulling repository jeffutter/mongodb
b746fbf12ad0: Download complete 
6695587e5b05: Download complete 
511136ea3c5a: Download complete 
e465fff03bce: Download complete 
23f361102fae: Download complete 
9db365ecbcbb: Download complete 
ad892dd21d60: Download complete 
9da068313088: Download complete 
4db9d42cac8a: Download complete 
8f3be15babe6: Download complete 
2171fd21f63a: Download complete 
4859934f04e7: Download complete 
31fb8671ad33: Download complete 
6c498ac01a4d: Download complete 
69d9cd1e2a7f: Download complete 
8b516dac2ad6: Download complete 
fc79138e468f: Download complete 
ec8cc89e3192: Download complete 
c775f8552204: Download complete 
94afec3e78b2: Download complete 
26d8c2643ff6: Download complete 
6c35aff49eac: Download complete 
030cedecde95: Download complete 
cat: /home/dokku/.mongodb/admin_pw: No such file or directory

It seems that the plugin knows that there was a previous install. How to do a clean install?

Best

Sebastian

jeffutter commented 10 years ago

The only thing that should be required is deleting $DOKKU_ROOT/.mongodb (probably /home/dokku/.mongodb . You can also docker rmi "jeffutter/mongodb:latest" and make sure that all containers are docker stopped and docker rm 'd.

I'm going to close the issue but please let me know if you are still having trouble.