Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mainul35/3f00375597006a93f1318e4d7f433be5 to your computer and use it in GitHub Desktop.
Save mainul35/3f00375597006a93f1318e4d7f433be5 to your computer and use it in GitHub Desktop.
Command for making VM hosted postgres container accessible from local machine
sudo docker run -p 5432:5432 \
-e POSTGRES_PASSWORD=123456 \
-e POSTGRES_HOST_AUTH_METHOD=trust \
--add-host=social_community:172.24.5.110 postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment