瀏覽代碼

Update userguide/dockervolumes - fixes issue #12052

Signed-off-by: Evgeny Lukianchikov <mail@eluck.me>
eluck 10 年之前
父節點
當前提交
57b09068ef
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/sources/userguide/dockervolumes.md

+ 1 - 1
docs/sources/userguide/dockervolumes.md

@@ -205,7 +205,7 @@ elsewhere. Create a new container.
 
 
 Then un-tar the backup file in the new container's data volume.
 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
 You can use the techniques above to automate backup, migration and
 restore testing using your preferred tools.
 restore testing using your preferred tools.