Docker builds a delivery container for the modern app. It is “a tool that can package an application and its dependencies in a virtual container that can run on any Linux server. This helps enable flexibility and portability on where the application can run, whether on premise, public cloud, private cloud, bare metal, etc”. Docker took virtualization one step further. Despite being a very recent technology, it is already very popular.
Baseimage-docker by Phusion is a special Docker image, based on Ubuntu, with some optimizations that makes it a great base to build custom Docker images. “Ubuntu is not designed to be run inside Docker. Its init system, Upstart, assumes that it’s running on either real hardware or virtualized hardware, but not inside a Docker container. But inside a container you don’t want a full system anyway, you want a minimal system. But configuring that minimal system for use within a container has many strange corner cases that are hard to get right if you are not intimately familiar with the Unix system model. This can cause a lot of strange problems. Baseimage-docker gets everything right”.
$ docker run nimiq/postgresql
Now enjoy your new PostgreSQL server. For more info and examples visit README.
- Based on Ubuntu 14.04 and phusion/baseimage-docker
- PostgreSQL 9.3
- Automatically create your PostgreSQL superuser with the given password
- Integrated SSH server
- Add your public key to the container’s SSH server for an easy access
- Expose to the host the ports 22 (SSH) and 5432 (PostgreSQL)
- Share PostgreSQL data directory and log files with the host and other Docker containers
- Available in Docker Hub Registry
Find more info in the codebase hosted at GitHub!
Key technologies used in Docker-PostgreSQL93:
- Bash shell scripting, Linux, Ubuntu, runit
- Git, GitHub