Skip to main content

Posts

Showing posts from August, 2020

Installing Postgres using Docker Container - Ubuntu 18.04

 Step1: Install Docker using Ubuntu Terminal Command: sudo apt install docker.io Step 2: Check docker is available command: docker Step 3: Check Docker Service is up and running. command: sudo service docker status Step 4: Pull latest postgres into docker command: docker pull postgres Step 5: check docker image is available cmd: docker images Step 6: Run the docker postgres image and validate container started running. cmd: sudo docker run --name psql-ultra -e POSTGRES_PASSWORD=master -d postgres sudo docker ps Note: postgres port 5432 and ubuntu 5432 tcp port has to get update. So normal -p command with docker won't work. Hope this helps!