Skip to content

Commit f862a9d

Browse files
authored
docs: add third bind format (#57)
Signed-off-by: mbshields <[email protected]>
1 parent 875a792 commit f862a9d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/reference/stacker_file.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,15 @@ Because of the odd behavior of `cmd` and `entrypoint`, and the inherited nature
179179

180180
### `binds`
181181

182-
`binds`: specifies bind mounts from the host to the container. There are two formats:
182+
`binds`: specifies bind mounts from the host to the container. There are three formats:
183183

184184
binds:
185+
- /zomg
185186
- /foo/bar -> /bar/baz
186-
- /zomg
187+
- source: /foo/bar
188+
dest: /bar/baz
187189

188-
The first format binds `/foo/bar` to `/bar/baz`, and the second binds host `/zomg` to container `/zomg`.
190+
The first format binds host `/zomg` to container `/zomg` while the second and third bind host `/foo/bar` to container `/bar/baz`.
189191

190192
At this time there is no awareness of change for any of these bind mounts, so `--no-cache` should be used to re-build if the content of the bind mount has changed.
191193

0 commit comments

Comments
 (0)