Skip to content

Commit

Permalink
Add docker pull instructions to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Gartner committed Dec 9, 2019
1 parent 2b424b6 commit dbf0c80
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ tab](https://github.com/mgartner/pg_flame/releases). Once downloaded, move
Alternatively, if you'd like to use Docker to build the program, you can.

```
$ git clone https://github.com/mgartner/pg_flame.git
$ cd pg_flame
$ docker build --tag 'pg_flame' .
$ docker pull mgartner/pg_flame
```

### Build from source
Expand Down Expand Up @@ -81,7 +79,8 @@ $ cat plan.json | pg_flame > flamegraph.html

### Example: Docker

If you've followed the Docker installation steps above, you can pipe query plan JSON to a container and save the output HTML.
If you've followed the Docker installation steps above, you can pipe query plan
JSON to a container and save the output HTML.

```
$ psql dbname -qAtc 'EXPLAIN (ANALYZE, BUFFERS, FORMAT JSON) SELECT id FROM users' \
Expand Down

0 comments on commit dbf0c80

Please sign in to comment.