Skip to content

Instantly share code, notes, and snippets.

@keiichiroy
Last active November 29, 2019 01:59
Show Gist options
  • Select an option

  • Save keiichiroy/05282498fc4df4e7fbf54d197fc28b48 to your computer and use it in GitHub Desktop.

Select an option

Save keiichiroy/05282498fc4df4e7fbf54d197fc28b48 to your computer and use it in GitHub Desktop.

Revisions

  1. keiichiroy renamed this gist Nov 29, 2019. 1 changed file with 0 additions and 0 deletions.
  2. keiichiroy renamed this gist Nov 29, 2019. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. keiichiroy created this gist Nov 29, 2019.
    7 changes: 7 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    ```bash
    docker run -d --user "$(id -u):$(id -g)" -v /etc/passwd:/etc/passwd:ro -v $(pwd)/data:/var/lib/postgresql/data -p 5432:5432 -e POSTGRES_PASSWORD=postgres postgres:10.10
    ```

    ```bash
    psql -h localhost -p 5432 -U postgres -W -d postgres
    ```