Added volumes documentation#2423
Conversation
|
@crosbymichael -- could you give some comments, especially about the last section? |
|
👍 ping @metalivedev |
|
Also, I was discussing with @metalivedev that when I shared the volume among two containers, it seemed to be copying instead of using the same volume. When I change the data from one container, I don't see that change on the other one and vice-versa. I didn't dig into the code to check that, but it should be a copy or the same volume? @creack @crosbymichael |
|
As I spoke to @crosbymichael it's the same volume. But I'm getting the following behavior: root@precise64:/home/vagrant# docker inspect f760a2992eba | grep /lib/couchdb
"/var/lib/couchdb": {}
"/var/lib/couchdb": "/var/lib/docker/volumes/ccdace3a1eaa30da55133b825ff5e1707696b48f73cc65f2b29452a5ffff3d63/layer"
"/var/lib/couchdb": true
root@precise64:/home/vagrant# docker inspect 8ed2c2a313e7 | grep /lib/couchdb
"/var/lib/couchdb": "/var/lib/docker/volumes/ccdace3a1eaa30da55133b825ff5e1707696b48f73cc65f2b29452a5ffff3d63/layer"
"/var/lib/couchdb": true
root@precise64:/home/vagrant# docker ps
ID IMAGE COMMAND CREATED STATUS PORTS
8ed2c2a313e7 shykes/couchdb:2013-05-03 /bin/sh -e /usr/bin/ 11 days ago Up 11 days 49156->5984
f760a2992eba shykes/couchdb:2013-05-03 /bin/sh -e /usr/bin/ 11 days ago Up 11 days 49155->5984
root@precise64:/home/vagrant#
Both containers have the same volume. But I was experiencing some caching issues with CouchDB that seemed to be different volumes. I'll update the documentation with the correct info. Thanks |
|
@rogaha What are the run commands that you are using? |
|
@crosbymichael, I was using the browser interface to change the values. But I was accessing them from a different physical machine using the browser as well. |
|
Nice @rogaha ! Thanks for taking care of this. |
|
You are welcome! :) Let's how it goes after @crosbymichael and @metalivedev reviews! I keep working on "missing parts" of the documentation! |
There was a problem hiding this comment.
I don't think this is true. Since this is a directory on the host, the host should be able to do a backup of the volume. And if the backup software runs within the container, it can definitely be backed-up somewhere else (I guess that's the piping data into and out of the container). Here I'm assuming "backup" means "copy". If there is some other meaning of backup that would be blocked by the volume, let me know.
|
You'll also need to add this to the to |
|
Hi @metalivedev, Thanks for your comments. I'll do that and update the PR. |
- Added reference to the index.rst
|
ping @metalivedev |
Added volumes documentation



fixes #1981