Skip to main content

Posts

Showing posts with the label POstgresQL

How to Install Postgres on Docker

Docker is an open-source platform where we can create, deploy, and run applications by using containers. Docker is similar to virtual machines (VM), but in VM you need to create a virtual operating system, while Docker allows applications to use the system kernel. PostgreSQL community supports (v9.4,v9.5, v9.6, v10, v11 etc.) Images. The difference between Images and containers is that Images are simply templates of instructions, and an instance of an Image is called a container. Prerequisites Access to a command line/terminal window A user account with  sudo  privileges An existing Docker installation Option 1: Run Postgres Using Docker Compose To deploy a Postgres container using Docker Compose, you should have this Docker tool set up on your system. If you are a Linux user and need help setting up, refer to one of our guides on installing   Docker Compose on Ubuntu   or   how to install Docker Compose on CentOS. 1. To ensure an easy and clean installatio...