Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add third bind format #57

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading