From da24c283afeeb8087b92c2f463ffe5cc73df0c29 Mon Sep 17 00:00:00 2001
From: startxfr <clarue@startx.fr>
Date: Thu, 20 Nov 2014 17:00:41 +0100
Subject: modif de code example dans les readme

---
 Applications/phpmyadmin/README.md | 5 ++++-
 Applications/rockmongo/README.md  | 5 ++++-
 OS/Fedora/README.md               | 4 ++++
 README.md                         | 4 +++-
 Services/apache/README.md         | 5 ++++-
 Services/mariadb/README.md        | 5 ++++-
 Services/memcache/README.md       | 5 +++++
 Services/mongo/README.md          | 5 ++++-
 Services/nodejs/README.md         | 5 ++++-
 Services/php/README.md            | 5 ++++-
 Services/postgres/README.md       | 5 ++++-
 Services/ssh/README.md            | 5 ++++-
 12 files changed, 48 insertions(+), 10 deletions(-)

diff --git a/Applications/phpmyadmin/README.md b/Applications/phpmyadmin/README.md
index c0796f8..32d2071 100644
--- a/Applications/phpmyadmin/README.md
+++ b/Applications/phpmyadmin/README.md
@@ -21,8 +21,11 @@ Build the container
 	docker run -d -p 80:80 --name="pma" startx/app-pma
 
 ## Accessing server
+access to the running webserver
+	firefox http://localhost:80/pma
 
-	firefox http://localhost/pma
+access to the container itself
+	docker exec -it pma bash
 
 ## Related Resources
 * [Sources files](https://github.com/startxfr/docker-images/tree/master/Applications/phpmyadmin)
diff --git a/Applications/rockmongo/README.md b/Applications/rockmongo/README.md
index acf9ff0..18f0618 100644
--- a/Applications/rockmongo/README.md
+++ b/Applications/rockmongo/README.md
@@ -21,8 +21,11 @@ Build the container
 	docker run -d -p 80:80 --name="rockmongo" startx/app-rockmongo
 
 ## Accessing server
+access to the running webserver
+	firefox http://localhost:80/rockmongo
 
-	firefox http://localhost/rockmongo
+access to the container itself
+	docker exec -it rockmongo bash
 
 ## Related Resources
 * [Sources files](https://github.com/startxfr/docker-images/tree/master/Applications/rockmongo)
diff --git a/OS/Fedora/README.md b/OS/Fedora/README.md
index e6f3ac1..02646e9 100644
--- a/OS/Fedora/README.md
+++ b/OS/Fedora/README.md
@@ -23,7 +23,11 @@ Build the container
 
 ## Accessing server
 
+	# Start interactive shell
 	docker run -it startx/fedora bash
+	# Start as a daemon 
+	docker run -d startx/fedora bash
+	docker exec -it fedora /bin/bash
 
 ## Related Resources
 * [Sources files](https://github.com/startxfr/docker-images/tree/master/Services/fedora)
diff --git a/README.md b/README.md
index d6d13a7..967137a 100644
--- a/README.md
+++ b/README.md
@@ -33,10 +33,12 @@ Build the container
 ### Running local image
 Running an interactive image and get access to shell
 
-	docker run -it <image_name> bash
+	docker run -it <image_name> <cmd>
 
 Running an image as a daemon
+
 	docker run -d <image_name>
+	docker exec -it <image_name> <cmd>
 
 ## Related Resources
 * [Sources files](https://github.com/startxfr/docker-images/tree/master/)
diff --git a/Services/apache/README.md b/Services/apache/README.md
index 2839ad5..897a1bf 100644
--- a/Services/apache/README.md
+++ b/Services/apache/README.md
@@ -23,8 +23,11 @@ Build the container
 	docker run -d -p 80:80 --name="apache" sv-apache
 
 ## Accessing server
+access to the running webserver
+	firefox http://localhost:80
 
-	firefox http://localhost
+access to the container itself
+	docker exec -it apache bash
 
 ## Related Resources
 * [Sources files](https://github.com/startxfr/docker-images/tree/master/Services/apache)
diff --git a/Services/mariadb/README.md b/Services/mariadb/README.md
index c8ff816..447fcff 100644
--- a/Services/mariadb/README.md
+++ b/Services/mariadb/README.md
@@ -25,9 +25,12 @@ Build the container
 	docker run -d -p 3306:3306 --name="mariadb" sv-mariadb
 
 ## Accessing server
-
+access to the running database
 	mysql -h localhost -p 3306
 
+access to the container itself
+	docker exec -it mariadb bash
+
 ## Related Resources
 * [Sources files](https://github.com/startxfr/docker-images/tree/master/Services/mariadb)
 * [Github STARTX profile](https://github.com/startxfr/docker-images)
diff --git a/Services/memcache/README.md b/Services/memcache/README.md
index 3b200c2..16124e9 100644
--- a/Services/memcache/README.md
+++ b/Services/memcache/README.md
@@ -24,6 +24,11 @@ Build the container
 
 	docker run -d -p 11211:11211 --name="memcache" sv-memcache
 
+## Accessing server
+
+access to the container itself
+	docker exec -it memcache bash
+
 ## Related Resources
 * [Sources files](https://github.com/startxfr/docker-images/tree/master/Services/memcache)
 * [Github STARTX profile](https://github.com/startxfr/docker-images)
diff --git a/Services/mongo/README.md b/Services/mongo/README.md
index fa40312..41d4670 100644
--- a/Services/mongo/README.md
+++ b/Services/mongo/README.md
@@ -25,9 +25,12 @@ Build the container
 	docker run -d -p 27017:27017 --name="mongo" sv-mongo
 
 ## Accessing server
-
+access to the running database
 	mongo -h localhost -p 27017
 
+access to the container itself
+	docker exec -it mongo bash
+
 ## Related Resources
 * [Sources files](https://github.com/startxfr/docker-images/tree/master/Services/mongo)
 * [Github STARTX profile](https://github.com/startxfr/docker-images)
diff --git a/Services/nodejs/README.md b/Services/nodejs/README.md
index 6045051..f903a64 100644
--- a/Services/nodejs/README.md
+++ b/Services/nodejs/README.md
@@ -22,9 +22,12 @@ Build the container
 	docker run -d -p 8000:8000 --name="nodejs" sv-nodejs
 
 ## Accessing server
-
+access to the running webserver
 	firefox http://localhost:8000
 
+access to the container itself
+	docker exec -it nodejs bash
+
 ## Related Resources
 * [Sources files](https://github.com/startxfr/docker-images/tree/master/Services/nodejs)
 * [Github STARTX profile](https://github.com/startxfr/docker-images)
diff --git a/Services/php/README.md b/Services/php/README.md
index 74bdae3..e4ed6f6 100644
--- a/Services/php/README.md
+++ b/Services/php/README.md
@@ -22,8 +22,11 @@ Build the container
 	docker run -d -p 80:80 --name="php" sv-php
 
 ## Accessing server
+access to the running webserver
+	firefox http://localhost:80
 
-	firefox http://localhost
+access to the container itself
+	docker exec -it php bash
 
 ## Related Resources
 * [Sources files](https://github.com/startxfr/docker-images/tree/master/Services/php)
diff --git a/Services/postgres/README.md b/Services/postgres/README.md
index 9268f9d..44a9a65 100644
--- a/Services/postgres/README.md
+++ b/Services/postgres/README.md
@@ -25,9 +25,12 @@ Build the container
 	docker run -d -p 5432:5432 --name="postgres" sv-postgres
 
 ## Accessing server
-
+access to the running database
 	psql -U postgres -h localhost -p 5432
 
+access to the container itself
+	docker exec -it mongo bash
+
 ## Related Resources
 * [Sources files](https://github.com/startxfr/docker-images/tree/master/Services/postgres)
 * [Github STARTX profile](https://github.com/startxfr/docker-images)
diff --git a/Services/ssh/README.md b/Services/ssh/README.md
index efd96f1..7f68c79 100644
--- a/Services/ssh/README.md
+++ b/Services/ssh/README.md
@@ -22,8 +22,11 @@ Build the container
 	docker run -d -p 22022:22 --name="ssh" sv-ssh
 
 ## Accessing server
+access to the running server
+	ssh -p 22022 root@localhost
 
-	ssh -p 22022 root@<containerId>
+access to the container itself
+	docker exec -it ssh bash
 
 ## Related Resources
 * [Sources files](https://github.com/startxfr/docker-images/tree/master/Services/ssh)
-- 
cgit v1.2.3