Skip to content

Instantly share code, notes, and snippets.

@0del
Created November 4, 2022 04:23
Show Gist options
  • Save 0del/6a40c54ad68870685f9c6f2a093fb642 to your computer and use it in GitHub Desktop.
Save 0del/6a40c54ad68870685f9c6f2a093fb642 to your computer and use it in GitHub Desktop.
Docker command run postgresql conatiner
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