1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

docs: fix typo in bash_history mount example

Signed-off-by: Kristian Haugene <kristian.haugene@capgemini.com>
This commit is contained in:
Kristian Haugene 2015-12-04 15:57:44 +01:00
parent e3fbd6922f
commit 655766ed95

View file

@ -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