Created
November 4, 2022 04:23
-
-
Save 9bany/6a40c54ad68870685f9c6f2a093fb642 to your computer and use it in GitHub Desktop.
Docker command run postgresql conatiner
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
docker run --name postgres-latest -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=secret -d postgres | |
docker exec -it postgres-latest createdb --username=root --owner=root <db_name> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment