Quickstart

  • Start Docker Daemon (dockerd)
  • Get Minimal Ubuntu server running locally : docker run -t -i ubuntu:18.04 /bin/bash
    • If needed, image will be downloaed at first.
    • You will get a root prompt.
    • When done using exit and container instance will be shutdown.
  • List dockers container, images via docker ps -a (Last column is the name required in the next step)
  • Remove images (To cleanup disk space) : docker rm -f <name>

Resources

Connect to psql inside docker

docker exec -it <tagname/image_name> psql -U postgres