You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: emphasize the fact that secrets aren't saved in cache
I was reading through the documentation trying to understand what's so
special about secret type mount except for extra options it takes as I
found that contents of bind mount doesn't get baked into the image too
but it can be found in /var/lib/docker in contrary to secret type
mount. I've learned that secret type mount uses tmpfs under the hood
and my findings were confirmed by
https://docs.docker.com/build/cache/invalidation/#general-rules: 'The
contents of build secrets are not part of the build cache.'. I think
it's worth emphasizing in the documentation.
Fixesdocker/docs#20436.
Signed-off-by: Arkadiusz Drabczyk <[email protected]>
|[`cache`](#run---mounttypecache)| Mount a temporary directory to cache directories for compilers and package managers. |
676
+
|[`tmpfs`](#run---mounttypetmpfs)| Mount a `tmpfs` in the build container. |
677
+
|[`secret`](#run---mounttypesecret)| Allow the build container to access secure files such as private keys without baking them into the image and build cache. |
678
+
|[`ssh`](#run---mounttypessh)| Allow the build container to access SSH keys via SSH agents, with support for passphrases. |
0 commit comments