Skip to content

Commit 265e547

Browse files
albersjoaofnfernandes
authored andcommitted
Fix docker-machine mount reference page (docker#5142)
* Fix reference page for `docker-machine mount` Signed-off-by: Harald Albers <[email protected]> * Add reference page for `docker-machine mount` to navigation Signed-off-by: Harald Albers <[email protected]>
1 parent 5e92b2e commit 265e547

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Diff for: _data/toc.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -2784,6 +2784,8 @@ manuals:
27842784
title: kill
27852785
- path: /machine/reference/ls/
27862786
title: ls
2787+
- path: /machine/reference/mount/
2788+
title: mount
27872789
- path: /machine/reference/provision/
27882790
title: provision
27892791
- path: /machine/reference/regenerate-certs/

Diff for: machine/reference/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ title: Docker Machine command-line reference
1313
- [ip](ip.md)
1414
- [kill](kill.md)
1515
- [ls](ls.md)
16+
- [mount](mount.md)
1617
- [provision](provision.md)
1718
- [regenerate-certs](regenerate-certs.md)
1819
- [restart](restart.md)

Diff for: machine/reference/mount.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ Now you can use the directory on the machine, for mounting into containers.
2626
Any changes done in the local directory, will be reflected in the machine too.
2727

2828
```none
29+
$ eval $(docker-machine env dev)
2930
$ docker run -v /home/docker/foo:/tmp/foo busybox ls /tmp/foo
3031
bar
31-
$ docker touch foo/baz
32+
$ touch foo/baz
3233
$ docker run -v /home/docker/foo:/tmp/foo busybox ls /tmp/foo
3334
bar
3435
baz

0 commit comments

Comments
 (0)