浏览代码

Merge pull request #18434 from haugene/master

docs: fix typo in bash_history mount example
Sebastiaan van Stijn 9 年之前
父节点
当前提交
5a9bf3a3d3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/userguide/dockervolumes.md

+ 1 - 1
docs/userguide/dockervolumes.md

@@ -176,7 +176,7 @@ Only the current container can use a private volume.
 The `-v` flag can also be used to mount a single file  - instead of *just*
 directories - from the host machine.
 
-    $ docker run --rm -it -v ~/.bash_history:/.bash_history ubuntu /bin/bash
+    $ docker run --rm -it -v ~/.bash_history:/root/.bash_history ubuntu /bin/bash
 
 This will drop you into a bash shell in a new container, you will have your bash
 history from the host and when you exit the container, the host will have the