mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #12054 from eluck/master
Update userguide/dockervolumes - fixes issue #12052
This commit is contained in:
commit
3985dc299a
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ elsewhere. Create a new container.
|
|||
|
||||
Then un-tar the backup file in the new container's data volume.
|
||||
|
||||
$ docker run --volumes-from dbdata2 -v $(pwd):/backup busybox tar xvf /backup/backup.tar
|
||||
$ docker run --volumes-from dbdata2 -v $(pwd):/backup ubuntu cd /dbdata && tar xvf /backup/backup.tar
|
||||
|
||||
You can use the techniques above to automate backup, migration and
|
||||
restore testing using your preferred tools.
|
||||
|
|
Loading…
Add table
Reference in a new issue