add an example to validate restored data from data volume container

This commit is contained in:
Zhenkai Jiang 2015-07-03 16:23:31 +08:00
parent 72144f1032
commit 977221c5d1

View File

@ -18,4 +18,8 @@ $ sudo docker run -v /dbdata --name dbdata2 ubuntu /bin/bash
```
$ sudo docker run --volumes-from dbdata2 -v $(pwd):/backup busybox tar xvf
/backup/backup.tar
```
为了查看/验证恢复的数据,可以再启动一个容器挂载同样的容器卷来查看
```
$ sudo docker run --volumes-from dbdata2 busybox /bin/ls /dbdata
```