summaryrefslogtreecommitdiffstats
path: root/README.rst
diff options
context:
space:
mode:
authorHraban Luyat <hraban@0brg.net>2017-04-25 09:44:58 +0100
committerHraban Luyat <hraban@0brg.net>2017-04-25 09:44:58 +0100
commit94d8091bac532567fbc285acb0e7b712e64d8661 (patch)
tree60ecfd87f47e4a891ada64622eb0c31cf5ac012c /README.rst
parent1e1d980ae2967a9fee14dfeb13a63cbe34769fd5 (diff)
Fix readme monospace syntax
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index 12dad78e..c09c5d8a 100644
--- a/README.rst
+++ b/README.rst
@@ -189,11 +189,13 @@ installing it, or any dependencies, system-wide.
To build the image:
::
+
$ docker build -t pgcli .
To create a container from the image:
::
+
$ docker run --rm -ti pgcli pgcli <ARGS>
To access postgresql databases listening on localhost, make sure to run the
@@ -201,12 +203,14 @@ docker in "host net mode". E.g. to access a database called "foo" on the
postgresql server running on localhost:5432 (the standard port):
::
+
$ docker run --rm -ti --net host pgcli pgcli -h localhost foo
To connect to a locally running instance over a unix socket, bind the socket to
the docker container:
::
+
$ docker run --rm -ti -v /var/run/postgres:/var/run/postgres pgcli pgcli foo
Thanks: