Skip to content

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

Reset

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)

Reset #2

Docker remove all except volumes:
sudo docker system prune
Docker remove all volumes:
sudo docker volume prune


PostgreSQL

Reset

  1. Get into postgres container:
    docker exec -it <CONTAINER_ID> bash
  2. Enter postgres command line:
    psql postgres postgres (if asked for password enter DEV_PASS_NOT_SECRET)
  3. Type in order:
    DROP SCHEMA public CASCADE;
    CREATE SCHEMA public;
    GRANT ALL ON SCHEMA public TO postgres;
    GRANT ALL ON SCHEMA public TO public;
  4. Type:
    \q to exit psql
Clone this wiki locally