Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

access from ip pgsql running in docker

run the docker postgres - make sure the port is published, I use alpine because it's lightweight.

docker run --rm -P -p 127.0.0.1:5432:5432 -e POSTGRES_PASSWORD="1234" --name pg postgres:alpine

using another terminal, access the database from the host using the postgres uri

psql postgresql://postgres:1234@localhost:5432/postgres
Comment

PREVIOUS NEXT
Code Example
Shell :: heroku delete branch 
Shell :: Managing network connections in ubuntu 
Shell :: serverless sqs batch size 
Shell :: raspberry pi default username 
Shell :: git message 
Shell :: powershell allow execution 
Shell :: what is git 
Shell :: yarn add global 
Shell :: error: taint "node-role.kubernetes.io/master" not found 
Shell :: react native reactotron bug 
Shell :: generate component angular without folder 
Shell :: Bell char 
Shell :: install git 
Shell :: how to delete a folder in github 
Shell :: no source map sass 
Shell :: renomeando branch 
Shell :: chocolatey local installed 
Shell :: add husky commitlint 
Shell :: windows cmd opens and closes 
Shell :: how to delay a script from running linx terminal 
Shell :: intel pinning threads 
Shell :: -u flag in git command 
Shell :: github to colab 
Shell :: github copilot neovim 
Shell :: install pip ubuntu 
Shell :: wordpress set tagline from cli 
Shell :: copy from vim to clipboard 
Shell :: how to install Jupyter console 
Shell :: Sending a Simple Email From Linux Terminal 
Shell :: kivy vim plugin 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =