cache: mount readonly in readfile handler
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>docker-18.09
parent
1eb11bf912
commit
8f007b3d08
|
@ -9,7 +9,7 @@ import (
|
|||
)
|
||||
|
||||
func ReadFile(ctx context.Context, ref ImmutableRef, p string) ([]byte, error) {
|
||||
mount, err := ref.Mount(ctx, false)
|
||||
mount, err := ref.Mount(ctx, true)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue