Skip to content

Commit

Permalink
docs: add third bind format
Browse files Browse the repository at this point in the history
Signed-off-by: mbshields <[email protected]>
  • Loading branch information
mbshields committed Jun 3, 2024
1 parent b18dac8 commit ea6844c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/reference/stacker_file.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,15 @@ Because of the odd behavior of `cmd` and `entrypoint`, and the inherited nature

### `binds`

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

binds:
- /zomg
- /foo/bar -> /bar/baz
- /zomg
- source: /foo/bar
dest: /bar/baz

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

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.

Expand Down

0 comments on commit ea6844c

Please sign in to comment.