diff options
author | startxfr <clarue@startx.fr> | 2014-12-08 23:49:15 +0100 |
---|---|---|
committer | startxfr <clarue@startx.fr> | 2014-12-08 23:49:15 +0100 |
commit | 76fbe43a8e1cb13cfe4a24bb78ac510a13c85651 (patch) | |
tree | 14c8aac5aa405791025ae12ae9553ebe299bef8e /Services/postgres | |
parent | ef2c1df934ee7720fd1ccacae042f3deb3b7628d (diff) | |
download | phpmyadmin-76fbe43a8e1cb13cfe4a24bb78ac510a13c85651.tar.gz phpmyadmin-76fbe43a8e1cb13cfe4a24bb78ac510a13c85651.tar.bz2 phpmyadmin-76fbe43a8e1cb13cfe4a24bb78ac510a13c85651.tar.xz phpmyadmin-76fbe43a8e1cb13cfe4a24bb78ac510a13c85651.zip |
adding example for using volumes
Diffstat (limited to 'Services/postgres')
-rw-r--r-- | Services/postgres/README.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Services/postgres/README.md b/Services/postgres/README.md index 313d67a..ebb5b29 100644 --- a/Services/postgres/README.md +++ b/Services/postgres/README.md @@ -4,6 +4,9 @@ This container run postgres on fedora server. ## Running from docker registry docker run -d -p 5432:5432 --name="postgres" startx/sv-postgres + # when used with a volume container (run data container, then run service) + docker run -d -v /var/log/pgsql -v /var/lib/pgsql --name postgres-data startx/sv-postgres echo "Data container for postgresql" + docker run -d -p 5432:5432 --volumes-from postgres-data --name="postgres" startx/sv-postgres when linked to another container docker run -d --name="postgres" startx/sv-postgres docker run -d --name="php" --link postgres:postgres startx/sv-php |