Troubleshoot
Vynny edited this page Jan 26, 2018
·
3 revisions
This page presents users and devs alike with an amalgam of quick fixes for the various issues we ran into.
Docker remove all images:
docker rmi $(docker images -a -q)
Docker remove all Containers:
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
Docker remove all volumes:
docker volume rm $(docker volume ls -f)
Docker remove all except volumes:
sudo docker system prune
Docker remove all volumes:
sudo docker volume prune
- Get into postgres container:
docker exec -it <CONTAINER_ID> bash
- Enter postgres command line:
psql postgres postgres
(if asked for password enter DEV_PASS_NOT_SECRET) - Type in order:
DROP SCHEMA public CASCADE;
CREATE SCHEMA public;
GRANT ALL ON SCHEMA public TO postgres;
GRANT ALL ON SCHEMA public TO public;
- Type:
\q
to exit psql