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 thename
required in the next step) - Remove images (To cleanup disk space) :
docker rm -f <name>
Resources¶
- Setup local dev environment - Written in mid 2016. Could be out of date, depending on when you read it.
Connect to psql
inside docker¶
docker exec -it <tagname/image_name> psql -U postgres