Skip to content

Commit

Permalink
Correct references to cache_mounts in README
Browse files Browse the repository at this point in the history
  • Loading branch information
eZanmoto committed Aug 11, 2022
1 parent 4f63540 commit 1bbd74c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ inside containers, back to the actual paths on the host. This can allow
bind-mounting to be utilised to any depth of container nesting, as long as all
paths are reachable on the host.

##### `cache_mounts`
##### `cache_volumes`

`cache_mounts` exists to help in scenarios where a volume should be available to
a container, but where the container is run with a non-`root` user. Before a
`cache_volumes` exists to help in scenarios where a volume should be available
to a container, but where the container is run with a non-`root` user. Before a
container is run by `dock`, `dock` recursively updates the permissions of volume
directories to be open (`0777`), so that they can be written to by non-`root`
users.
Expand All @@ -283,7 +283,7 @@ permissions. Switching between users is possible during a `docker build`, but
it's generally not recommended to mount volumes during `docker build`, so the
solution ideally happens after this. Different options are possible, such as
using `sudo`, `su`, scripts with sticky bits, or possibly using BuildKit, but
`cache_mounts` can be used as a general, image-independent mechanism to handle
`cache_volumes` can be used as a general, image-independent mechanism to handle
this scenario.

#### Flags
Expand Down

0 comments on commit 1bbd74c

Please sign in to comment.