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/mariadb | |
| parent | ef2c1df934ee7720fd1ccacae042f3deb3b7628d (diff) | |
adding example for using volumes
Diffstat (limited to 'Services/mariadb')
| -rw-r--r-- | Services/mariadb/README.md | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/Services/mariadb/README.md b/Services/mariadb/README.md index db7e14e..76d4842 100644 --- a/Services/mariadb/README.md +++ b/Services/mariadb/README.md @@ -4,11 +4,11 @@ This container run mariadb on fedora server.  ## Running from docker registry  	docker run -d -p 3306:3306 --name="mariadb" startx/sv-mariadb -	# when used with a volume container -	docker run -d -v /var/lib/mysql -v /var/log/mysql --name mariadb-data startx/sv-mariadb -	docker run -d --volumes-from mariadb-data -p 3306:3306 --name="mariadb" startx/sv-mariadb +        # when used with a volume container (run data container, then run service) +	docker run -d -v /var/lib/mysql -v /var/log/mysql --name mariadb-data startx/sv-mariadb  echo "Data container for mariadb" +	docker run -d -p 3306:3306 --volumes-from mariadb-data --name="mariadb" startx/sv-mariadb  	# when used in a linked container -	docker run -d -p 3306:3306 --name="mariadb" startx/sv-mariadb +	docker run -d --name="mariadb" startx/sv-mariadb  	docker run -d --name="php" --link mariadb:mariadb startx/sv-php  ## Build and run from local Dockerfile  | 
