Browse Source

examples of volume mapping

Mark Sta Ana 10 years ago
parent
commit
258ec16016
1 changed files with 8 additions and 0 deletions
  1. 8 0
      ghost/content.md

+ 8 - 0
ghost/content.md

@@ -17,3 +17,11 @@ If you'd like to be able to access the instance from the host without the contai
 	docker run --name some-ghost -p 8080:2368 -d ghost
 
 Then, access it via `http://localhost:8080` or `http://host-ip:8080` in a browser.
+
+You can also point the image to your existing content on your host
+
+	docker run --name some-ghost -v /path/to/ghost/blog:/var/lib/ghost ghost
+
+...or a data container
+
+	docker run --name some-ghost --volumes-from some-ghost-data ghost