Skip to content

Conversation

@AkihiroSuda
Copy link
Member

Dockerfile has `VOLUME /home/user/.local/share/buildkit` by default too,
but the default VOLUME does not work with rootless on Google's Container-Optimized OS
as it is mounted with `nosuid,nodev`.

So the volume has to be explicitly mounted as an `emptyDir` volume.

Tested with GKE Autopilot 1.24.3-gke.200 (kernel 5.10.123+, containerd 1.6.6).

Fix issue 879

Thanks to Andrew Grigorev (ei-grad) and Ben Cressey (bcressey).

Signed-off-by: Akihiro Suda <[email protected]>
(cherry picked from commit b36488e)
Signed-off-by: Akihiro Suda <[email protected]>
@thaJeztah
Copy link
Member

Slightly confused: this is only updating documentation and examples, not really fixing an issue, correct?

(no real objections, just wondering)

@AkihiroSuda
Copy link
Member Author

AkihiroSuda commented Oct 5, 2022

Slightly confused: this is only updating documentation and examples, not really fixing an issue, correct?

(no real objections, just wondering)

Yes.
Cherrypicked because users may not prefer using YAMLs in the master branch.

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cherrypicked because users may not prefer using YAMLs in the master branch.

Thanks!

LGTM (not a maintainer)

@tonistiigi tonistiigi merged commit 656ffe8 into moby:v0.10 Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants