mirror of
https://github.com/docker/cli.git
synced 2026-01-15 07:40:57 +03:00
Merge pull request #6665 from leeplay/patch-1
Update dockervolumes.md Upstream-commit: d15bc4a34234bd34d07f6e8c94a7ef9b24a55c1a Component: engine
This commit is contained in:
@@ -122,7 +122,7 @@ we'll be left with a backup of our `dbdata` volume.
|
||||
You could then to restore to the same container, or another that you've made
|
||||
elsewhere. Create a new container.
|
||||
|
||||
$ sudo docker run -v /dbdata --name dbdata2 ubuntu
|
||||
$ sudo docker run -v /dbdata --name dbdata2 ubuntu /bin/bash
|
||||
|
||||
Then un-tar the backup file in the new container's data volume.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user