Last active
May 8, 2022 18:12
-
-
Save mainul35/3f00375597006a93f1318e4d7f433be5 to your computer and use it in GitHub Desktop.
Command for making VM hosted postgres container accessible from local machine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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