Docker (2)


Docker notes

To cleanup unused/dnagling docker images: sudo docker image prune To cleanup ununsed volumes: sudo docker volume prune To list current docker images: sudo docker images To remove docker image by image_id: sudo docker rmi <your_image_id1> <your_image_id2> (sometimes, docker rmi command will throw up errors like: Error response from daemon: conflict: unable to delete 78f7412b7923 (must […]




Using Postgres inside docker container

These are my personal notes. Am running postgres docker image on a local linux box. If port 5432 is already in use, run this to see what process is using it: sudo ss -lptn ‘sport = :5432’ the above command will also display the pid using which you can kill the process. For example, if […]