mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-12-25 06:28:56 +00:00
add an example to validate restored data from data volume container
This commit is contained in:
parent
72144f1032
commit
977221c5d1
@ -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
|
||||
```
|
Loading…
Reference in New Issue
Block a user