diff --git a/README.md b/README.md index a3d2f33..70dee91 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # pgcli-docker -pgcli in a tiny Docker image powered by Alpine Linux + +[`pgcli`](https://www.pgcli.com/) in a tiny Docker image powered by [Alpine Linux](https://alpinelinux.org/) # How to use this image @@ -29,3 +30,19 @@ docker run --rm -ti --name=pgcli \ --dbname=postgres \ --user=postgres ``` + +If you want to preserve **query-history, pgcli-log and pgcli-config** on the +host-machine, just mount the volume to the path `/root/.config/pgcli/` for +`pgcli` files: + +```bash +docker run -v $(pwd)/pgcli-cfg:/root/.config/pgcli/ --rm diyan/pgcli --help +``` + +# AUTHORS + +* [Alexey Diyan](http://diyan.github.io/) + +# LICENSE + +[MIT](https://github.com/diyan/pgcli-docker/blob/master/LICENSE)