docker-zulip icon indicating copy to clipboard operation
docker-zulip copied to clipboard

Clean DB

Open jby opened this issue 5 years ago • 3 comments

Since I'm not that proficient in docker/docker-compose it would be nice to have instructions on how to reset the DB and start fresh with a clean DB, while testing.

jby avatar Mar 06 '19 12:03 jby

Agreed, we should have that. You can do that by removing everything in /opt/docker after shutting down the containers.

timabbott avatar Mar 06 '19 17:03 timabbott

@timabbott Who is installing Docker in /opt/docker ? It's /var/lib/docker on every distro I've ever seen.

mabushey avatar Mar 06 '19 18:03 mabushey

I went with:

for f in $(docker image ls | awk '{print $3}');do docker image rm $f;done

But realize now that the DB is persistent under /opt/docker, will try to clean that as well.

jby avatar Mar 07 '19 07:03 jby