I want to create a Docker image which contains Java and PostgreSQL. I just want to create an Image to reuse it from anywhere.
From reading the documentation I don't understand how I can do that.
This is what I tried:
user@host:/$ docker run -i -t debian /bin/bash
root@container:/$ apt-get install postgresql-9.3
user@host:/$ docker ps
user@host:/$ docker commit <CID> username/postgresql